mrhhsg opened a new issue, #9224:
URL: https://github.com/apache/incubator-doris/issues/9224

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Description
   
   Doris use bit operation In `HashTableGrower` & `HashTableFixedGrower` to get 
buffer size like this:
   ```cpp
   size_t buf_size() const { return 1ULL << size_degree; }
   ```
   The operation will be executed every time when `buf_size()` is called, but 
this is not necessary.
   
   ### Solution
   
   To remove unnecessary calculations, we can save the result in a newly added 
field.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to