Bug 253155

Summary: Reserve space for vectors if possible
Product: WebKit Reporter: Seija K. <gfunni234>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Seija K.
Reported 2023-03-01 07:43:18 PST
It is good practice to reserve space in vectors before pushing back new elements with each iteration, as it saves the work of reallocating space between each push_back or emplace_back.
Attachments
Seija K.
Comment 1 2023-03-01 07:44:46 PST
EWS
Comment 2 2023-03-02 13:22:13 PST
Committed 261092@main (8292d20a046a): <https://commits.webkit.org/261092@main> Reviewed commits have been landed. Closing PR #10688 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-03-02 13:23:15 PST
Note You need to log in before you can comment on or make changes to this bug.