HomeSoftware Heritage

exporters/edges: Make swhid() format directly instead of instantiating…

Description

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%.

Details