Records have unnecessary initialized-length slot
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: tjc, Assigned: tjc)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Currently, Records have an internal slot that stores their length. This is unnecessary, since the value of that slot always equals the initialized length of the sorted keys array (another slot stored in records). It might be a minor optimization to cache the length rather than having to fetch the sorted keys array and then get its length, but right now we don't have any evidence that this helps significantly with performance.
I have a patch for this coming shortly.
Assignee | ||
Comment 1•3 years ago
|
||
This slot is not necessary, as the initialized length can always be computed
from the sorted keys array.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•2 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:tjc, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
It's ready to land, I just didn't have a chance to nag somebody to land it. I asked on Matrix and hopefully someone will see it.
Comment 5•2 years ago
|
||
bugherder |
Description
•