viirya commented on issue #679:
URL: 
https://github.com/apache/datafusion-comet/issues/679#issuecomment-2237336876

   > It might be that the assignment to `Decimal.longVal` (or `Decimal.intVal`) 
in `Decimal.createUnsafe` is copying data from native to Jvm memory and that 
has a performance issue. But there may be no way to overcome this other than to 
use off-heap memory in the JVM side.
   
   Comet first reads the integer value by calling `getInt`. If any data copying 
is significant between off-heap and heap memory, it should be in this call. But 
you can see from the flame graph that `getInt` uses much less time.


-- 
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: github-unsubscr...@datafusion.apache.org

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


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

Reply via email to