Subj : Re: Slow string conversion of long js functions To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sat Jan 10 2004 11:16 pm Adrian Klein wrote: > A Testsite, that performs the conversion of a relative long js function > to its String value 10 times (took about 3500 ms on a PII 450 with Win98 > and Mozilla 1.5, whereas IE and Opera took only about 0 ms): > http://www.dragosan.net/slow_string.html > 10 calls of String(a_long_function) took 2748 milliseconds to execute.(average time per call: 275 milliseconds) Tested with PII 450 on Suse 6.3 Linux using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030315. Actual releases of Mozilla don't run on that ancient Linux. With the SM shell (1.5rc5) the shell crashes before the source of the function is entered completely. I assume a buffer overflow. -- Georg Maaß - bioshop.de D-76227 Karlsruhe, Westmarkstraße 82 HTML, XML / JavaScript, C++, Java, PHP, VB / CGI, JSP, ASP, ASP.net - The ultimate DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .