Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a1f8a9f20d53d402cd99fc3087b2203a05534c88
https://github.com/WebKit/WebKit/commit/a1f8a9f20d53d402cd99fc3087b2203a05534c88
Author: Zak Ridouh <[email protected]>
Date: 2026-10-06 (Tue, 06 Oct 2026)
Changed paths:
M Source/WebKit/Scripts/generate-serializers.py
Log Message:
-----------
generate-serializers.py is quadratic in the number of types
https://bugs.webkit.org/show_bug.cgi?id=326487
rdar://problem/189272454
Reviewed by Pascoe.
should_decode_ref() is called for every member of every serialized type and
scanned the whole list of serialized types each time: about 6,700 members times
1,400 types, 8.7 million lookups and 83% of the run. Build the name lookup once
per list instead. Generating WebKit's serializers takes 1.06 s instead of 3.9 s,
with byte-identical output.
* Source/WebKit/Scripts/generate-serializers.py:
(should_decode_ref):
Canonical link: https://commits.webkit.org/322909@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications