Bug 293190

Summary: HashTable doesn't need `ShouldValidateKey` as template parameter for the whole class
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web Template FrameworkAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2025-05-17 14:42:05 PDT
HashTable doesn't need `ShouldValidateKey` as template parameter for the whole class. Instead, only add this template parameter for HashTable functions that actually need it. This reduces unnecessary code duplication, reduces binary size in WebCore by 1MB and avoids redundant key validations since we can now be more fine-grained.
Attachments
Chris Dumez
Comment 1 2025-05-17 14:44:09 PDT
EWS
Comment 2 2025-05-18 11:06:10 PDT
Committed 295078@main (a8416d2c6a3b): <https://commits.webkit.org/295078@main> Reviewed commits have been landed. Closing PR #45555 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-05-18 11:07:28 PDT
Note You need to log in before you can comment on or make changes to this bug.