<div dir="ltr"><div><div>Hi all,<div><br></div><div>I notice these are two arrays `_fingerprints` and `_handlers` in class `SignatureHandlerLibrary`[1]</div><div>which are used to store the addresses of the signature handler of the native method.</div><div>But it seems not very efficient because the worst search time is O(N).</div><div>If the most recently created handlers are likely to be used mostly, their search time will always be O(n),</div><div>because the recently created handlers are added to the end of the array</div><div>and the search begins from the first element of the array to the last element.</div><div><br></div><div>So I want to use a hashtable instead of arrays to store the signature handlers.</div>And the entry of such a hashtable at least contains the fingerprint and address.<div><div><br></div><div>What is your opinion?</div><div>Any ideas are appreciated.</div><div><br></div><div>Best Regards.</div><div>-- Guoxiong</div><div><br></div><div>[1] <a href="https://github.com/openjdk/jdk/blob/50d73352068f588cf6db29acb56e21b0412ab768/src/hotspot/share/interpreter/interpreterRuntime.hpp#L170">https://github.com/openjdk/jdk/blob/50d73352068f588cf6db29acb56e21b0412ab768/src/hotspot/share/interpreter/interpreterRuntime.hpp#L170</a></div><div><br></div></div></div></div></div>