Skip to main content

snapshot_buckets

Function snapshot_buckets 

Source
fn snapshot_buckets(entries: &[BuildEntry]) -> (i64, Vec<Vec<BuildEntry>>)
Expand description

Snapshot the current entry order into buckets and compute total cost.

This matches vanilla’s bucketize() which creates SubTree objects that capture the children’s current sorted order. We return cloned entries so that later sorts of the original slice don’t affect the saved buckets.