Closed Bug 1781128 Opened 3 years ago Closed 2 years ago

Records have unnecessary initialized-length slot

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
105 Branch
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.

Blocks: 1658309

This slot is not necessary, as the initialized length can always be computed
from the sorted keys array.

Severity: -- → N/A
Priority: -- → P1
Assignee: nobody → tjc
Status: NEW → ASSIGNED
Attachment #9286946 - Attachment description: WIP: Bug 1781128 - Remove INITIALIZED_LENGTH_FIELD slot for records → Bug 1781128 - Remove INITIALIZED_LENGTH_FIELD slot for records

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.

Flags: needinfo?(tjc)
Flags: needinfo?(jdemooij)
Flags: needinfo?(jdemooij)

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.

Flags: needinfo?(tjc)
Pushed by rvandermeulen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4169f53b772 Remove INITIALIZED_LENGTH_FIELD slot for records r=jandem
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: