HomeSoftware Heritage

Make the OriginMetadataIndexer call storage.revision_get a single time for all…

Authored by vlorentz on Feb 6 2019, 4:56 PM.

Description

Make the OriginMetadataIndexer call storage.revision_get a single time for all revisions.

Instead of indexing origins one by one in the 'index' method
(which calls storage.revision_get for each one of them),
the commit implements the indexing in 'index_list' to index
them all at once, allowing to call storage.revision_get
a single time for all revisions at once.