-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize finding the file to replace when handling an upload
Before, we would parse every existing results file of the same type to find the one with the same uuid. We had the `UuidOnly` optimization to make that parsing 2/3 as expensive as parsing a full `Results` object, but it was still slow. Now, we make use of HomeResultsReader's cache, which already associates uuids with file names. Since we're no longer calling `tryReadUuid` for a large number of files within the scope of each request, there is much less benefit to micro-optimizing `tryReadUuid`. The only reason `UuidOnly` exists is to micro-optimize `tryReadUuid`, so we can get rid of `UuidOnly` now.
- Loading branch information
1 parent
c31dafc
commit 4763e10
Showing
2 changed files
with
25 additions
and
33 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