[thelist] Re: javascript optimization question

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Tue Apr 26 13:21:19 CDT 2005


Since no reply, I think the question has been lost in hyperspace :)

Anyways, I will research further and let you know if I find anything.

Cheers,
Volkan.

On 4/22/05, VOLKAN ÖZÇELİK <volkan.ozcelik at gmail.com> wrote:
> Hi all!
> 
> I have a question on javascript scripting engine:
> 
> Does javascript scripting engine do any optimization to function call,
> as in java?
> 
> Here is a simple set up:
> 
> function test1() {
>   test2();
>   test3();
> }
> 
> function test2(){/*some code*/;}
> function test3(){/*some other code*/;}
> 
> when calling test1() can test3 ever be executed before test2, given
> that the execution order does not change anything (or the optimizer
> thinks so)
> 
> Before that, is there a thing called "javascript optimizer" (as in
> java or C#) or javascript is executed line-by-line in the order things
> appear in source code.
> 
> imho, there is no such thing called a js optimizer, but I cannot be
> sure. Can you give me any pointers that proves or disproves my
> statement. I need to propose a very convincing explanation to my
> colleague (and project leader).
> 
> Thank you very much in advance.
> 
> Cheers,
> Volkan.
>


More information about the thelist mailing list