Subj : Re: Problem with performance of JSCallFunction To : c.ibrahim From : Brendan Eich Date : Tue Oct 26 2004 07:09 pm c.ibrahim wrote: > What I did in the tryout is simply evaluating the expression (2<3) > 1000 times for JS_CompileScript-JS_ExecuteScript. JS_CompileFunction > compiles a function taking parameters p1 & p2 that returns (p1 JS_CallFunction is called 1000 times with parameters value 2 & 3. Why should this be slower? It has to set up a stack frame, but so does JS_ExecuteScript (just not a call frame). Something is not right. You should profile (gprof, quantify, whatever you have) and see where the cycles are. It's best to use a hierarchical profiler (either of the two listed), to avoid attributing time to common subroutines exclusively, instead of spreading it proportionately among ancestor callers. Can you show your code, or mail it to me? Then I could profile it too. /be .