RESOLVED FIXED239893
ifdef out IPC::MessageName values that aren't applicable
https://bugs.webkit.org/show_bug.cgi?id=239893
Summary ifdef out IPC::MessageName values that aren't applicable
Cameron McCormack (:heycam)
Reported 2022-04-29 00:49:48 PDT
IPC::isMessageNameValue's compiled code is kind of complex, since there's bunch of values that return false for particular platforms and ENABLE & USE macros. This function is called for every IPC message. We can make it cheaper by ifdefing out the values in the enum declaration too, and make the function effectively "is messageName >= 1 && messageName <= lastMessageName".
Attachments
Radar WebKit Bug Importer
Comment 1 2022-04-29 00:50:03 PDT
Kimmo Kinnunen
Comment 2 2022-12-14 22:53:26 PST
IPC MessageName validation is slow - Validated on decoding - Debug builds validate on encoding
Kimmo Kinnunen
Comment 3 2022-12-14 23:04:01 PST
EWS
Comment 4 2022-12-19 00:17:57 PST
Committed 258073@main (03178c5e0622): <https://commits.webkit.org/258073@main> Reviewed commits have been landed. Closing PR #7672 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.