Bug 264114 - Optimize WTF::compactMap()
Summary: Optimize WTF::compactMap()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-02 14:25 PDT by Chris Dumez
Modified: 2023-11-03 11:38 PDT (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 Chris Dumez 2023-11-02 14:25:33 PDT
Optimize WTF::compactMap() by having it initialize vector capacity and rely on Vector's unsafeAppendWithoutCapacityCheck(), similarly to WTF::map().
Comment 1 Chris Dumez 2023-11-02 14:28:07 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19907
Comment 2 EWS 2023-11-03 11:37:25 PDT
Committed 270194@main (c1279eabfb21): <https://commits.webkit.org/270194@main>

Reviewed commits have been landed. Closing PR #19907 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-11-03 11:38:16 PDT
<rdar://problem/117915643>