Subj : Re: Optimizing DestoryContext() ? To : bubbfree From : Brendan Eich Date : Thu Jan 27 2005 07:14 pm bubbfree@gmail.com wrote: > My DestroyContext() calls are taking too much time. I've gone through > the SpiderMonkey optimization docs on the website. Was wondering if > there are any tips or tricks I could use to get DestroyContext sped up > a bit? make fewer objects? call maybe_gc more often? seems to be the > gc mark thing inside destroy context that is taking up some time. Use JS_DestroyContextNoGC appropriately. > (depending on the size of my scripts and complexity, it takes about 6-7 > seconds to clean up the context). That's way too long. What kind of live objects are being marked? Are you making really long linear lists of objects? /be .