d8tltanc edited a comment on pull request #9485:
URL: https://github.com/apache/kafka/pull/9485#issuecomment-740036778


   https://paste.ubuntu.com/p/zKYc6rk6WY/
   
   Benchmark with AclAuthorizer::updateCache
   
   With aclCount=50 and resourceCount=200000,
   
   200000 call to updateCache took ~59 seconds
   
   The cpu overhead is mainly on re-hashing (everytime when the resourceCache 
hits 75% of the capacity). But we can overlook it.
   
   The memory overhead is M = (aclCount * 8) * (resourceCount * 8) + 
unique(resourceCount) * (average_resource_name_length) 
   bytes, since strings are cached in the constant string pool. When 
aclCount=50 and resourceCount=200000, M < 20MB.


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to