Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d9136f7891344cfe1635fb97cda11d9163fef9cc
      
https://github.com/WebKit/WebKit/commit/d9136f7891344cfe1635fb97cda11d9163fef9cc
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-09-02 (Wed, 02 Sep 2026)

  Changed paths:
    M Source/WebCore/loader/SpeculationRules.cpp

  Log Message:
  -----------
  SpeculationRules::parseSingleRule rebuilds its allowed-keys HashSet on every 
call
https://bugs.webkit.org/show_bug.cgi?id=323242
rdar://186495063

Reviewed by Chris Dumez.

parseSingleRule() constructed a 10-element HashSet<String> of the allowed
rule keys as a function-local, so the set was allocated, hashed, and
destroyed once per rule parsed. The set is a read-only constant, so hoist
it to a NeverDestroyed static that is built once.

No change in behavior.

* Source/WebCore/loader/SpeculationRules.cpp:
(WebCore::parseSingleRule):

Canonical link: https://commits.webkit.org/320391@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to