richardstartin commented on pull request #8195:
URL: https://github.com/apache/pinot/pull/8195#issuecomment-1040587358


   > This PR definitely improves the performance by reducing the unnecessary 
allocations. My concern is about whether adding the branches can hurt the 
performance comparing to reusing the `keys` (even though the overall 
performance is still much better because of the reduced allocations). If we are 
confident that JVM can optimize the branches so that the overhead is 
negligible, then it is good to go.
   
   I'm not too concerned about the branches that don't get pruned because the 
they are predictable (they go the same way for the entire block) but I think we 
could have the best of both worlds with code generation - if we can generate a 
tuple and code to lazily materialise the tuple for each shape we see in queries 
(of which I doubt there would be more than 20 patterns in a realistic 
deployment) we can have both low memory footprint and no conditionals.


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