Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8292d20a046a37b9c6be992bbf53a144a183f0ff
      
https://github.com/WebKit/WebKit/commit/8292d20a046a37b9c6be992bbf53a144a183f0ff
  Author: Rose <83477269+ataridre...@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to