Re: ClassValue perf?

2015-04-30 Thread Charles Oliver Nutter
On Wed, Apr 29, 2015 at 4:02 AM, Doug Simon wrote: > We considered using ClassValue in Graal for associating each Node with its > NodeClass. Accessing the NodeClass is a very common operation in Graal (e.g., > it’s used to iterate over a Node’s inputs). However, brief experimentation > showed i

Re: ClassValue perf?

2015-04-30 Thread Charles Oliver Nutter
On Mon, Apr 27, 2015 at 12:50 PM, Jochen Theodorou wrote: > Am 27.04.2015 19:17, schrieb Charles Oliver Nutter: >> Jochen: Is your class-to-metaclass map usable apart from the Groovy >> codebase? > > > Yes. Look for org.codehaus.groovy.reflection.GroovyClassValuePreJava7 which > is normally wrappe

Re: ClassValue perf?

2015-04-30 Thread Michael Haupt
Hi, I'm looking at JDK-8031043 and would appreciate if you guys could send any code you think might benefit from a smaller initial CV memory footprint my way. Given what I've read, it could have some impact during startup (Groovy?) if the value is reduced to 1. Best, Michael > Am 30.04.2015