Subj : Spidermonkey performance To : netscape.public.mozilla.jseng From : "Kumar Iyengar" Date : Mon Apr 12 2004 03:31 pm I am new to Spidermonkey and was trying to evaluate it with the intention of using it within our products and performance is one of our biggest concerns. I did some prototyping and have a few questions: *) I tried creating one Runtime for all the threads in our product and the resulting performance was very slow. I have switched to one Runtime per thread model and found that the performance does improve. Is one Runtime per thread(or threadpool) the recommended model in a multi-threaded environment? *) If the above is true then does Spidermonkey have to be built with the JS_THREADSAFE flag? In other words, if i am using the library with one Runtime per thread model, then can i use js32.dll without compiling it with the JS_THREADSAFE flag? *) Does keeping the compiled version of the script help performance? My initial tests seemed to indicate that it does not. *) Does anyone have any other tips on how to improve the performance. thanks, --kumar iyengar .