ScopedValue performance declines as number of dynamic bindings increases
Johan Sjolen
johan.sjolen at oracle.com
Tue Jun 24 16:01:58 UTC 2025
Hi Aleksey,
Oooh, that could explain the issue completely. I didn't think about that at all.
The issue basically disappears when compiling first, let me see what happens with a JMH benchmark as well.
________________________________________
From: Aleksey Shipilev <shipilev at amazon.de>
Sent: Tuesday, June 24, 2025 17:52
To: Johan Sjolen; Robert Engels
Cc: loom-dev at openjdk.org
Subject: Re: ScopedValue performance declines as number of dynamic bindings increases
On 24.06.25 17:21, Johan Sjolen wrote:
> time java ScopedTest.java > /dev/null` and `time java ScopedTest2.java > /dev/null`
This invokes javac compilation. Have you tried compiling with javac first?
-Aleksey
Amazon Web Services Development Center Germany GmbH
Tamara-Danz-Str. 13
10243 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597
More information about the loom-dev
mailing list