On Sun, 1 Mar 2026 03:41:47 GMT, Michael Strauß <[email protected]> wrote:

> The current implementation of `Renderer.getPeerInstance()` looks up mappings 
> by concatenating strings to form a combined key:
> 
> peer = peerCache.get(name + "_" + unrollCount);
> 
> 
> This can be improved by not using strings to store the combined key, but 
> using a simple `PeerCacheKey` class instead.
> The `Renderer` class then uses a single reusable `PeerCacheKey` object to 
> look up mappings, making the lookup allocation-free.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jfx/pull/2091

Reply via email to