Bug 252813 - Avoid unnecessary alloc/init for NSDictionary
Summary: Avoid unnecessary alloc/init for NSDictionary
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-23 06:04 PST by Seija K.
Modified: 2023-02-23 20:52 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seija K. 2023-02-23 06:04:29 PST
The compiler initializes an NSDictionary when the @ syntax is used. If an underlying error happens, alloc/init is called again. Let's avoid that.
Comment 1 Seija K. 2023-02-23 06:10:29 PST
Pull request: https://github.com/WebKit/WebKit/pull/10335
Comment 2 EWS 2023-02-23 20:51:19 PST
Committed 260782@main (4543085706ef): <https://commits.webkit.org/260782@main>

Reviewed commits have been landed. Closing PR #10335 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-02-23 20:52:29 PST
<rdar://problem/105867295>