[PATCH] D115064: [clang-format][NFC] Replace deque with vector

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 3 13:14:53 PST 2021


curdeius added a comment.

Deque, contrary to the vector, doesn't need to move the elements when growing. I'm not sure if that's relevant here though.
Have you checked what's on average the maximum size of `Path` on some larger repo?
Maybe using `llvm::SmallVector` with some well-thought (data-based) static number of elements would be better here, WDYT?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115064/new/

https://reviews.llvm.org/D115064



More information about the cfe-commits mailing list