Closed Bug 1885907 Opened 7 months ago Closed 7 months ago

Speedup webidl generation by reducing the amount of string operations

Categories

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

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

No description provided.
Blocks: 1885908

This simplifies the code, and it's always possible to call clang-format
afterward if we want to work on generated file.

Depends on D204671

How much of an improvement is this?

Are you planning on writing a patch to run clang-format on the generated code? I don't even spend much time on DOM bindings, but I still frequently look at the generated code on SearchFox and linked from crash reports, so manually running clang-format locally won't solve the issue.

Yeah, I agree with mccr8. The current formatting sure isn't ideal, and it's hard to maintain, but simply ripping it out without replacing it with something better is a big step backwards.

See Also: → 1886124

I ran some extra benchmark: running clang-format on the generated files adds a non negligible overhead, even when parallelized (by the order of the second).
I understand the requirement of being able to generate readable files, turns out this wasn't the right approach, closing as WONTFIX.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WONTFIX
Attachment #9391769 - Attachment is obsolete: true
Component: General → DOM: Bindings (WebIDL)
Product: Firefox Build System → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: