thanks you all for your feedback .. but I had implemented something in
clojure which I knew would be much faster in say c++ .. and now was
regretting it .. and was really looking at all weird locations in
desperation.. but now I realized I was doing something in a very wrong
inefficient (algorithmically )  way .. now things seem better..
Sunil.

On Sun, Jan 2, 2011 at 4:31 PM, 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.
>
> In terms of total runtime there wouldn't be much to gain anyway from
> compiling upfront. All you'd gain is a more uniform cost of function calls.
> But why care unless you need real-time performance - and then you shouldn't
> be using a JVM language anyway.
>
> Konrad.
>
>
> --
> 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<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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

Reply via email to