Closed
Bug 468163
Opened 17 years ago
Closed 14 years ago
Multitude of JSContext*s created by xbl loading
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: taras.mozilla, Unassigned)
References
Details
(Keywords: perf)
Not sure what the performance/security ramifications of this are, but seems that xbl is the leading cause of JSContexts. I get 31 JS_NewContext calls in a fennec startup.
Comment 1•17 years ago
|
||
We basically create one per script global (so one per proto document).
I'd think this is pretty cheap, though.
| Reporter | ||
Comment 2•17 years ago
|
||
yeah, I haven't noticed any overhead in creating jscontexts. I'm not sure of the memory efficiency, etc.
Is there a reason you don't just swap out global objects?
Comment 3•17 years ago
|
||
jst might know the history there. This code is from before my time. :(
Comment 4•14 years ago
|
||
Is this an issue or not?
| Reporter | ||
Comment 5•14 years ago
|
||
(In reply to Marco Castelluccio from comment #4)
> Is this an issue or not?
It is not. JS engine will eventually get rid of contexts and this will get cleaned up in another bug.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•