[foreign] Poor performance?

John Rose john.r.rose at oracle.com
Mon May 20 20:18:20 UTC 2019


On May 20, 2019, at 1:34 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
> 
> Most of the code that is spinned at runtime by the binder could be spun statically using a right combo of indy/condy.

OTOH, using indy/condy allows spinning to be delayed until
the actual first use of each API point, not when the header
as a whole is bound.

We have also been toying with the idea of a "mindy" —
Method-level indy, where the method as a whole has a
BSM that lazily generates the body.  With this, a whole
method body would turn into (basically) a condy item,
to be expanded only when the method is run.

If the signatures of the methods are statically fixable,
then a very early binding of the APIs and signatures
might usefully combine with a very late (maximally
lazy) binding of the implementations.  Best of both
worlds, and all that…

(Is that what you meant, Maurizio?)

— John


More information about the panama-dev mailing list