exporters/edges: Make swhid() format directly instead of instantiating ExtendedSWHID
Before this commit, between 30 and 40% of the run time was spent in this
function (especially ExtendedSWHID.__init__
).
Now, it is under 10%.
Migrated from D6066 (view on Phabricator)