crepererum opened a new pull request, #10026: URL: https://github.com/apache/arrow-datafusion/pull/10026
## Which issue does this PR close? \- ## Rationale for this change Reduce lock contention in distributor channels. Found while investigating runtime performance using [`tokio2chrome`](https://github.com/crepererum/tokio2chrome) (eBPF version). ## What changes are included in this PR? - use atomic counters instead of "counter behind mutex" where appropriate - use less state - only lock when needed - move "wake" operation out of lock scopes (they are eventual operations anyways and many wake operations results in "futex wake" operations -- i.e. a syscall -- which you should avoid while holding the lock) ## Are these changes tested? Existing tests pass. Benchmark TBD. ## Are there any user-facing changes? Faster DataFusion. -- 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]
