Zak Wilson a écrit : > Thanks, Christophe. It works now, and it's fast. > > Unfortunately, now I've run in to Nathan's problem. After a few > thousand generations, resulting in the creation of about half a > million functions it was using over a gig of memory and died with an > OutOfMemoryError. > I don't > know the JVM very well at all. Are there any ways around this? Are > techniques that generate a lot of short-lived functions just not > practical in Clojure? > Yes there are a way around this: permgen memory is released when the classloader is GCed so, if you use a transient classloader, your anonymous functions can be collected.
I need to refresh my knowledge of Clojure internals. Christophe --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---