[foreign] Poor performance?

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri May 17 14:51:46 UTC 2019


On 17/05/2019 11:26, Maurizio Cimadamore wrote:
> thanks you for bringing this up, I saw this benchmark few days ago and 
> I took a look at it. That benchmark is unfortunately hitting on a 
> couple of (transitory!) pain points: (1) it is running on Windows, 
> which lacks the optimizations available for MacOS and Linux 
> (directInvoker). When the linkToNative effort will be completed, this 
> discrepancy between platforms will go away. The second problem (2) is 
> that the call is passing a big struct (e.g. bigger than 64 bits). Even 
> on Linux and Mac, such a call would be unable to take advantage of the 
> optimized invoker and would fall back to the so called 'universal 
> invoker' which is slow.

Actually, my bad, the bench is passing pointer to structs, not structs 
by value - which I think should mean the 'foreign+linkToNative' 
experimental branch should be able to handle this. Would be nice to get 
some confirmation that this is indeed the case.

Maurizio



More information about the panama-dev mailing list