Closed Bug 412611 Opened 17 years ago Closed 6 years ago

XPCNativeMember::Resolve that does not create JS functions

Categories

(Core :: XPConnect, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: igor, Unassigned)

References

Details

[This is a spin-off og bug 412491 comment 8 and later]

Currently XPCNativeMember::Resolve creates a new JS function just to clone it later when used. This creates an extra JSObject+JSFunction pair (8+6 words) to save a JSFunction instance when cloning the function. This extra initial JSObject+JSFunction pair creates long-term live GC things and for short-lived clones the average overhead of the extra JSFunction can be lower then the overhead of the pair.

Thus I suggest to consider skipping the cloning and just call JS_NewFunction as necessary.
Depends on: 412491
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.