From: Raides J.
<ra...@te...> - 2001-02-25 23:51:39
|
Jeff wrote: > > Whew! Go away for a day and the messages pile up! > > Raides J. - I was under the impression that this (JIT) was essentially > the case for both browsers, but I could be mistaken. The following is > from the Netscape JavaScript 1.3 reference, describing a function as > opposed to a function object created explicitly: > > ------------------ > Function objects created with the Function constructor are evaluated > each time they are used. This is less efficient than declaring a > function and calling it within > your code, because declared functions are compiled. > ------------------- > (snip) Where is the delay then? In the way they pre-compile things?? I will try to do an extensive research on the subject, using as base the C source-code implementation of JS1.5 (the version used in NS6) that I have somewhere in my CD-ROM collection. I will try to do a "source-code traversal" by hand (hard, but it's my speciality) so I can see where time is lost and memory is eaten. Maybe I will invest a month, but I hope it will help a lot in optimization. Raides J. |