Subj : Re: [ADDON] use the JS_THREADSAFE withouh NSPR (WIN32) To : Mladen Turk From : Brendan Eich Date : Sun Sep 21 2003 04:57 pm Mladen Turk wrote: >Hi, > >Not sure this is the right place to submit the patches, but perhaps someone will find it useful... > >This patch is mostly performance and build one. Using NSPR on WIN32 just to achieve thread safety is a little a bit overhead (if one is not building Mozilla) thought. > >It is the thin layer over WIN32 API and it give some performance gains over NSPR. > > >MT. > > >running 200000 iterations of test >did 200000 iterations in 47.72 seconds. > What's the test? Why are you sure this test represents any real-world workload? It's easy to prematurely optimize. JS already avoids locks for object (scopes) where possible. I'd have to see the benchmark to say more. No patch like this will be checked in, unless it's to NSPR, not to the JS engine sources. Therefore cross-posting to m.nspr. We should figure out which newsgroup to post followups to in a few posts, and set followup-to:. /be .