Patzifist opened a new pull request, #864: URL: https://github.com/apache/arrow-go/pull/864
… GetColumnBloomFilter ### Rationale for this change Under high concurrency (65 parallel workers), `GetColumnBloomFilter` completely degrades `sync.Pool`. Calling `ResizeNoShrink(0)` drops the internal buffer capacity to 0, forcing a fresh heap allocation on every single iteration and churning 13 GB of garbage in 1.4 seconds. ### What changes are included in this PR? Fixes #863 1. Fixed buffer recycling by using data.Reset(data.Buf()[:cap(data.Buf())]) instead of ResizeNoShrink(0) to preserve backing slice capacity. 2. Isolated heavy Bloom filter allocations from small metadata headers to eliminate pool pollution. ### Are these changes tested? Yes, added a concurrent stress test suite in bloom_filter_leak_test.go - Original code (Bug): Allocated: 13024.81 MB (Pool failed completely). - Fixed code (sync.Pool): Allocated: 66.25 MB (100% memory reuse verified) ### Are there any user-facing changes? No. This is strictly an internal performance and memory footprint optimization. -- 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]
