On Feb 28, 2011, at 12:33 PM, Ken Wesson wrote: > As noted earlier in this thread, I have determined that simply making > supers return a sorted set with an appropriate comparator (e.g. > alphabetic) suffices in this regard. (For performance reasons, supers, > or the instance of supers used by protocols, should probably be > memoized.)
FYI, protocol fns already cache dispatch results in instances of clojure.lang.MethodImplCache, so memoizing supers for that reason is unnecessary. See core_deftype.clj for the details. Whether supers and/or ancestors should be memoized or not to help out isa? is another story… - 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