On Oct 16, 2008, at 11:18 PM, Luc Prefontaine wrote: > Looking at classForName in the RT.java module (in trunk, checked out > a few days ago): > > static public Class classForName(String name) throws > ClassNotFoundException{ > > return Class.forName(name, false, baseLoader()); > } > > false means do not initialize the class. > It's faster to avoid the class initialization and it's probably the > proper thing to do 98% of the time. > Make that patch "permanent" in contrib/sql :)). A change in the > actual implementation > would surprise me, too many performance impacts and possible > behaviour problems may rise from a change.
Thanks for the explanation. I'm happy to use Class/forName permanently. I had changed to RT/classForName because of a prior discussion with Rich about a desire for RT's class loading facilities to be the ones we use from Clojure code. Rich, would it be a good idea to expose the "initialize" boolean in an additional version of RT/classForName? --Steve --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---