Closed Bug 1885914 Opened 7 months ago Closed 7 months ago

Speedup webidl AST generation

Categories

(Core :: DOM: Bindings (WebIDL), task)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Creating a parse tree implies the creation of a lot of small objects. In Python, __slots__ can be used to reduce the memory usage and the interaction with those objects.

Per https://wiki.python.org/moin/UsingSlots,

    slots are more efficient in terms of memory space and speed of

access

Depends on D204923

Attachment #9391778 - Attachment description: Bug 1885914 - Use __slots__ to speedup webidl parsing r=ahochheiden → Bug 1885914 - Use __slots__ to speedup webidl parsing r=ahochheiden!
Component: General → DOM: Bindings (WebIDL)
Product: Firefox Build System → Core
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/773503b323ed Use __slots__ to speedup webidl parsing r=peterv
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: