I see, so running (permGen) 10 times from the REPL is not the same as, say, (dotimes [_ 10] (permGen)), because there's an understood (eval) around anything executed directly in the REPL.
Thanks. On Jan 25, 9:33 am, Christian Vest Hansen <karmazi...@gmail.com> wrote: > When the reader has a top-level expression in the REPL, it gets > evaluated. Evaluation goes through the Compiler which generates > bytecode from your forms. Before the bytecode can be executed, it > needs to be loaded into the JVM, and that happens by wrapping it in a > class and loading that. > > On Sun, Jan 25, 2009 at 3:08 PM, Greg Harman <ghar...@gmail.com> wrote: > > > I believe you, but I don't understand why. I'm doing nothing but > > evaluate my test function over and over. Since no new functions are > > being defined, why would this evaluation use any PermGen? > > > On Jan 25, 5:57 am, Christian Vest Hansen <karmazi...@gmail.com> > > wrote: > >> Clojure creates class not for every function call, but for every > >> function definition. > > >> The PermGen growth you see is the REPL compiling your input, most likely. > > -- > Venlig hilsen / Kind regards, > Christian Vest Hansen. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---