Hi,

Am 22.12.2010 um 10:56 schrieb Mark Engelberg:

> On Wed, Dec 22, 2010 at 1:52 AM, Meikel Brandmeyer <m...@kotka.de> wrote:
>> It is a little ugly, but works with any function, in particular static and 
>> protocol functions. If you want a less rough interface, you can still go the 
>> gen-class route from the article. But this will come at the cost of one 
>> level of indirection on method calls.
> 
> I had assumed that the Rt.var lookup to "find the function by string
> name" would be more indirect and slower than calling the method of an
> AOT compiled class.  Is that not the case?

It depends how often you do that, I'd think. If you need the function several 
times you can do the lookup up once and store the Var reference for later use. 
I don't know. I haven't checked. Maybe there is no difference after all. And 
the more I think about it, you might be right.

Anyway, gen-class requires AOT. I try to avoid that, but YMMV.

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to