review request (L): 7030453: JSR 292 ClassValue.get method is too slow

Florian Weimer fweimer at
Thu Dec 8 09:55:00 UTC 2011

* John Rose:

> But, in order to respect the "general aim" you are mentioning, I have
> unhoisted one of the two words from the Class instance itself.  This
> will cause a minor slowdown in JSR 292 use cases.

What about using ClassValue for the various caches instead?
enumConstants and enumConstantDirectory seem good candidates (callers
cache the value anyway or do additional work while accessing the field).

Florian Weimer                <fweimer at>
BFK edv-consulting GmbH
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

More information about the core-libs-dev mailing list