Closed
Bug 782914
Opened 13 years ago
Closed 3 years ago
const variables are much slower than ordinary variables
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: kael, Unassigned)
References
()
Details
(Whiteboard: [js:p3])
Replacing 'var' with 'const' will cause any code that accesses said variable(s) to get slower in SpiderMonkey. In an ideal world, you'd want people to tag their constants with 'const' since it produces more robust code and could potentially enable some cool optimizations.
Updated•13 years ago
|
Whiteboard: [js:p3]
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 1•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Severity: major → --
Comment 2•3 years ago
|
||
Verified as fixed at http://web.archive.org/web/20140221193119/jsperf.com/const-vs-var-in-closures
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•