Descriptionsync: Optimize GetFirstChildId and ComputePrevIdFromServerPosition by having the parent/child index be sorted by SERVER_POSITION_IN_PARENT, rather than arbitrarily.
This fixes two longstanding TODOs and yields the following perf improvement on "SyncerTest.OneBajillionUpdates":
Release build (7000ms -> 500ms)
Debug build (70000ms -> 3000ms)
BUG=60236, chromium-os:11226
TEST=sync_unit_tests (SyncerPosition* gives good coverage)
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76700
Patch Set 1 #Patch Set 2 : Readability improvements. #Patch Set 3 : Self-review fixes. #Patch Set 4 : Revert some unrelated diffs. #Patch Set 5 : Fix unit_tests #
Total comments: 4
Patch Set 6 : Fix lexicographic-successor bug. #Patch Set 7 : Fix test bug. #Messages
Total messages: 6 (0 generated)
|