On 2 Sty, 12:01, Konrad Hinsen <konrad.hin...@fastmail.net> wrote: > On 2 Jan 2011, at 03:29, Sunil S Nandihalli wrote: > > > can I force the JIT to be called immediately for certain pieces of > > code after it starts executing with out waiting for the JVM realize > > it is necessary....? I would not mind jitting the whole code .. > > Actually I don't mind waiting a few extra seconds at the start since > > actual run-time for the program could be a couple of hundred > > minutes... > > > Is startup time the only reason why the whole code is not jitted > > immediately.. ? > > No. JIT compilation is based on run-time profiles of the code, so it > requires information that is not available before starting the > program. To given an example, if a method is called frequently with a > specific argument type, a specialized version can be compiled.
But in theory it could be posible to collect run-time data in one run, then JIT code at startup, using that collected data and current procesor architecture. -- 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