<div dir="ltr">Hi,<br><div>Since we are using ClassDesc quite often to represent Class constants in Class-File API, yet it's costly to hash them (as they are internalĀ names in CP but descriptors in ClassDesc), that Adam has created shortcuts to speed up fetching of Object CE from CD_Object, I have thought of a new tactic to hash ClassEntry by full descriptor than by internal name alone.</div><div><br></div><div>I have made a prototype atĀ <a href="https://github.com/liachmodded/jdk/commit/2932a560b0029352f1309883b3c5eecfb3d2c771">https://github.com/liachmodded/jdk/commit/2932a560b0029352f1309883b3c5eecfb3d2c771</a></div><div><br></div><div>The idea is that hashing CE as descriptors is easier than creating substrings for hashing; substring hashing is hard to compute, but appending and prepending and hash is much easier.<br></div><div><br></div><div>Does this look like a good idea? I only included a test to confirm its correctness, but haven't got time to bench it against, say, the port of java.lang,invoke or ProxyGenerator.</div><div><br></div><div>Chen</div></div>