Open Bug 1541208 Opened 7 years ago Updated 3 years ago

Statically allocate JS static strings

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

The JS engine has some strings it always allocates, in StaticStrings::init(). It would be nice if these could be created at compile time, so that they do not contribute to runtime overhead. Ideally, this could then be extended to jsids used by Gecko, such as those in XPConnect and the DOM bindings PropertyInfo.

Bug 1411469 did the same thing for static atoms in Gecko.

Boris did some kind of measurements last year in bug 1441292 comment 9.

Type: task → enhancement
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.