[webkit-changes] [WebKit/WebKit] 8292d2: WebGPU-Vulkan: Reserve vector space where possible
Rose
noreply at github.com
Thu Mar 2 13:22:11 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8292d20a046a37b9c6be992bbf53a144a183f0ff
https://github.com/WebKit/WebKit/commit/8292d20a046a37b9c6be992bbf53a144a183f0ff
Author: Rose <83477269+AtariDreams at users.noreply.github.com>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Changed paths:
M Tools/WebGPUAPIStructure/WebGPU-Vulkan/QueueImpl.cpp
Log Message:
-----------
WebGPU-Vulkan: Reserve vector space where possible
https://bugs.webkit.org/show_bug.cgi?id=253155
Reviewed by Michael Catanzaro.
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.
* Tools\WebGPUAPIStructure\WebGPU-Vulkan\QueueImpl.cpp:(createRenderPass): Reserve space for
vectors
Canonical link: https://commits.webkit.org/261092@main
More information about the webkit-changes
mailing list