jumbo: stable assignment of inputs to chunks
Adding or removing a file from a jumbo source set causes on average half of the chunks to have their inputs reallocated. Derive chunk boundaries from a combination of list position and path content. This is so that when a file is added or removed, only the boundaries with adjacent chunks typically move. For a balance between maximum chunk size and stability of partitions: * Partition uniformly into the required number of chunks. * Pick a "center" from each chunk by minimum hash value. * Pick the boundaries between centers by maximum hash value. Bug: 782863 Change-Id: Ie71d82b132e8145b4ed3d1141f85886a12149d5a Reviewed-on: https://chromium-review.googlesource.com/1102218Reviewed-by:Bruce Dawson <brucedawson@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@chromium.org> Reviewed-by:
Daniel Bratell <bratell@opera.com> Commit-Queue: Dirk Pranke <dpranke@chromium.org> Cr-Commit-Position: refs/heads/master@{#570623}
Showing
Please register or sign in to comment