li4wang commented on PR #2278: URL: https://github.com/apache/zookeeper/pull/2278#issuecomment-3254855434
Thanks for reviewing the PR. @kezhuw The ArrayBlockingQueue uses less bytes **per element** compared to LinkedBlockingQueue, however it allocates memory for all elements upfront. It could be beneficial if the maxQueueSize is set to some reasonable value. We can look into the potential enhancement of conditionally use LinkedBlockingQueue vs ArrayBlockingQueue based on some perf test results. -- 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]
