[webkit-changes] [WebKit/WebKit] 6a576f: Web Extensions: executeScript() should cache the f...
Timothy Hatcher
noreply at github.com
Tue Jan 7 10:53:00 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6a576f0034a3dd85639255b35a3959effc98c116
https://github.com/WebKit/WebKit/commit/6a576f0034a3dd85639255b35a3959effc98c116
Author: Timothy Hatcher <timothy at apple.com>
Date: 2025-01-07 (Tue, 07 Jan 2025)
Changed paths:
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionDynamicScriptsCocoa.mm
Log Message:
-----------
Web Extensions: executeScript() should cache the files to avoid repeated disk access.
https://webkit.org/b/285540
rdar://problem/142486066
Reviewed by Brian Weinstein.
Often an extension executes the same script repeatedly, causing disk access overhead and redundant text
encoding detection across many tabs or on every page load. Caching injected scripts, like we cache content
scripts, reduces this overhead and improves performance.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionDynamicScriptsCocoa.mm:
(WebKit::WebExtensionDynamicScripts::sourcePairForResource): Cache scripts to reduce disk access.
Canonical link: https://commits.webkit.org/288546@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list