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

Florian Weimer fweimer at bfk.de
Thu Dec 8 01:55:00 PST 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.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99


More information about the mlvm-dev mailing list