I have Lisp code that does this already. It also makes it very easy to create a (cached) lisp wrapper around Java methods. Perhaps I should send you what I have and we can talk about it.
Thanks.
Blake McBride
On Fri, Nov 12, 2010 at 8:28 AM, Erik Huelsmann ehuels@gmail.com wrote:
Hi,
Today, on IRC, I was approached by 'pmd' whether we have weak hash tables. We really don't, but he was actually looking for a way to memoize Java methods to be called with jmethod/jcall.
Since we do kind of 'dynamic dispatch' (which can be a costly operation), I thought it would be a good idea to add this memoization to our Java.java file using an LRU cache to clear old cache elements and maybe with an interface to clear the cache or resize it.
Comments?
Regards,
Erik.
armedbear-devel mailing list armedbear-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel