sullis opened a new pull request, #12478:
URL: https://github.com/apache/pinot/pull/12478

   Motivation:
   
   reduce enum array allocation in QueryLogger
   
   Modifications:
   
   cache QueryLogEntry.values() in a static variable
   
   Result:
   
   Java enum .values() method is invoked exactly once
   
   Additional context:
   
   
https://www.gamlor.info/wordpress/2017/08/javas-enum-values-hidden-allocations/
   
   


-- 
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