You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/02/12 00:29:53 UTC

[GitHub] [incubator-pinot] Jackie-Jiang commented on pull request #6559: Optimize group-key generator

Jackie-Jiang commented on pull request #6559:
URL: https://github.com/apache/incubator-pinot/pull/6559#issuecomment-777887324


   > I don't think the following 2 changes are needed for the optimization done in this PR.
   > 
   > ```
   > private static final int INITIAL_MAP_SIZE = (int) ((1 << 9) * 0.75f);
   >   private static final int MAX_CACHING_MAP_SIZE = (int) ((1 << 20) * 0.75f);
   > ```
   > 
   > We should be able to keep them to their original values right since the optimization done in this PR for IntGroupId map internally uses the capacity of 4K to align with the page size and is not really dependent on the above 2 changes. Just wondering if the above 2 changes can impact performance in any case. I don't think they are related to this PR.
   
   These 2 changes are just making the value calculation more obvious for readability. Because we use the map size as threshold, we should multiply it by the load factor. There is no performance impact.


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org