Improve metadata scanning a bit
ClosedPublic

Authored by astippich on Jul 20 2019, 5:21 PM.

Details

Summary

Avoid multiple lookups of keys in the metadata map.
Instead, iterate over it and add it to the track.
Saves about 5% in the benchmark.
Depends on D22590

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich requested review of this revision.Jul 20 2019, 5:21 PM
astippich created this revision.

Huh.

$ arc patch D22591
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
error: branch 'arcpatch-D22591' not found.
 INFO  Base commit is not in local repository; trying to fetch.
Created and checked out branch arcpatch-D22591.
Branch name arcpatch-D22439 already exists; trying a new name.
Created and checked out branch arcpatch-D22439_1.
Checking patch src/filescanner.h...
Checking patch src/filescanner.cpp...
Checking patch src/abstractfile/abstractfilelisting.cpp...
Applied patch src/filescanner.h cleanly.
Applied patch src/filescanner.cpp cleanly.
Applied patch src/abstractfile/abstractfilelisting.cpp cleanly.

 Cherry Pick Failed!
 Exception 
Command failed with error #1!
COMMAND
git cherry-pick 'arcpatch-D22439_1'

STDOUT
(empty)

STDERR
error: could not apply a332dbb... Consolidate cover scanning into file scanner
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'

(Run with `--trace` for a full exception trace.)

probably arcanist trying to apply the already merged dependent revision, I've rebased

ngraham accepted this revision.Jul 25 2019, 4:26 PM

Great work!

This revision is now accepted and ready to land.Jul 25 2019, 4:26 PM
This revision was automatically updated to reflect the committed changes.