fallintoplace opened a new pull request, #2198: URL: https://github.com/apache/iceberg-go/pull/2198
**What** - Bound scan task channel capacity to two slots per worker. **Why** - Avoid copying every task into a second buffer for large scans. **Implementation** - Size the channel to `min(task count, 2 × worker count)`. - Cover capacity and cancellation while the producer is blocked. **Benchmark** - Synthetic channel-buffer allocation using the `FileScanTask` layout; Go 1.23, 8 workers (16 slots). - 10,000 tasks: ~1.45 MiB → ~2.8 KiB. - 100,000 tasks: ~14.5 MiB → ~2.8 KiB. - 1,000,000 tasks: ~145 MiB → ~2.8 KiB. -- 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]
