]
Dan Berindei updated ISPN-7323:
-------------------------------
Status: Open (was: New)
Reduce number of lambda allocations
-----------------------------------
Key: ISPN-7323
URL:
https://issues.jboss.org/browse/ISPN-7323
Project: Infinispan
Issue Type: Task
Components: Core
Reporter: Dan Berindei
Assignee: Dan Berindei
Labels: performance
Fix For: 9.0.0.Beta2
With the move to non-blocking invocation, interceptors now use a lot of lambdas,
sometimes in the form {{this::method}}. But the JVM doesn't cache this kind of
lambdas, it only caches {{Class::method}} lambdas, so we end up creating lots of extra
lambda instances.
Of course, these are short-lived and are quite cheap to collect, but they can still
pollute the processor cache.