[webkit-changes] [WebKit/WebKit] 454308: Avoid unnecessary alloc/init when using dictionary...
Rose
noreply at github.com
Thu Feb 23 20:51:27 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4543085706efe7dfb684593f6b4e87410cefa34d
https://github.com/WebKit/WebKit/commit/4543085706efe7dfb684593f6b4e87410cefa34d
Author: Rose <83477269+AtariDreams at users.noreply.github.com>
Date: 2023-02-23 (Thu, 23 Feb 2023)
Changed paths:
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionCocoa.mm
Log Message:
-----------
Avoid unnecessary alloc/init when using dictionary literals
https://bugs.webkit.org/show_bug.cgi?id=252813
Reviewed by Timothy Hatcher.
The compiler initializes an NSDictionary when the @ syntax is used. If an underlying error happens, alloc/init is called again. Let's avoid that.
*Source\WebKit\UIProcess\Extensions\Cocoa\WebExtensionCocoa.mm:
Canonical link: https://commits.webkit.org/260782@main
More information about the webkit-changes
mailing list