I didn't know that about multimethods, it'd be great if that could be
improved. Are you sure MultiFn/getMethod can be modified that way? It
looks like it reads both cachedHierarchy and methodCache, and possibly
methodTable, all of which are always protected to be read and written
together in the rest of the file. On first look, it seems like they
could be read in an inconsistent state if that function is not
synchronized. Or is there a reason I'm not seeing that that would be
OK?
Would it be better to take methodTable, preferTable, methodCache, and
cachedHierarchy, put them all in a record, and stick that in an atom
in the MultiFn?
David
> --
> You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
> To post to this group, send email to
cloju...@googlegroups.com.
> To unsubscribe from this group, send email to
clojure-dev...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/clojure-dev?hl=en.
>