-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitimport: Make bookmark generation >10x faster for already imported …
…tags Summary: I noticed when re-importing `whatsapp/voip` (which has ~2k tags) that even though most tags were already imported, it took multiple seconds to iterate over each one with `generate-bookmark`. Looking at the code, we used to upload the git tag objects every time, even if the tag already existed. That's at least two blobstore puts, which explains the delay. After this change, the speed is closer to ~5-10 tags per second, as expected. We could still optimize further by parallelizing the bookmark generation, but this diff only fixes an obvious pessimization. Reviewed By: YousefSalama Differential Revision: D54684266 fbshipit-source-id: 5cddcbc7164a84f81fba184e0d83f6226d41a035
- Loading branch information
1 parent
93c70b5
commit c9d1f9e
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters