fallintoplace opened a new pull request, #2363:
URL: https://github.com/apache/iceberg-go/pull/2363

   ## What
   Speed up first-fit packing with a large lookback.
   
   ## Why
   Large plans fall back to a linear search through open bins.
   
   ## Implementation
   - Use the indexed path for large plans.
   - Bound the ring by the input size and allocate it lazily.
   - Preserve forward and reverse packing behavior.
   
   ## Benchmark
   Packing only, Apple M1 Pro, Go 1.26.3, median of 3 runs:
   - **16,384 files, lookback 8,193:** 74.10 ms → 0.71 ms (**104x faster**).
   - **24,000 files, lookback 10,000:** 139.46 ms → 1.89 ms (**74x faster**).
   
   `GOMAXPROCS=1 go test ./internal -run '^$' -bench 
'^BenchmarkSlicePackerLargeLookback$' -benchmem -benchtime=1x -count=3 -cpu=1`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to