[armedbear-devel] Java FFI performance enhancement idea: LRU cache

Blake McBride blake at mcbride.name
Fri Nov 12 19:21:27 UTC 2010


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 at 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 at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
>




More information about the armedbear-devel mailing list