On Aug 29, 2009, at 7:41 PM, Rich Hickey wrote:
> Since multimethods (are supposed to) cache their lookup *results* > (i.e. they shouldn't lookup over and over), I wouldn't expect this to > yield any improvement in a stable system with reused call paths. Are > you calling isa? yourself? Can you please paste some example code that > demonstrates the issue? Of course, I didn't think I was, but your guess w.r.t. direct use of isa? is right on. Turns out that isa? is being used extensively under the covers, in conjunction with some predicates associated with zip- filter usage. I absolutely should have caught that before roping multimethods into the discussion. So, the question is the efficiency of isa? itself. (Or, perhaps the wisdom of direct usage of isa? to begin with -- which I would say is too useful to not use on its own, when warranted.) - Chas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---