Speedup webidl generation by reducing the amount of string operations
Categories
(Core :: DOM: Bindings (WebIDL), task)
Tracking
()
People
(Reporter: sergesanspaille, Assigned: sergesanspaille)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
Assignee | ||
Comment 1•7 months ago
|
||
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
Comment 2•7 months ago
|
||
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.
Comment 3•7 months ago
|
||
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.
Assignee | ||
Comment 4•7 months ago
|
||
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.
Updated•7 months ago
|
Updated•7 months ago
|
Description
•