samarthjain opened a new pull request #11008:
URL: https://github.com/apache/druid/pull/11008


   Fixes #11007 .
   
   After hooking up Yourkit against the broker instance running the queries 
mentioned in the above issue, it turns out that a lot of time is being spent in 
resizing HashMap and HashSet that have been created with the default 
constructor. Also, a lot of CPU cycles are wasted unnecessarily looping through 
and authorizing resources even though the authorizer configured is 
AllowAllAuthorizer. 
   
   After making these changes, on my test cluster, I see that the query times 
went down from ~12seconds to ~7seconds. 
   
   
   This PR has:
   - [X] been self-reviewed.
      - [X] using the [concurrency 
checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md)
 (Remove this item if the PR doesn't have any relation to concurrency.)
   - [X ] been tested in a test Druid cluster.
   


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

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