summaryrefslogtreecommitdiff
path: root/test/example/small_vector.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SmallVector iteration improvements (#5825)Alon Zakai2023-07-261-0/+34
|
* Fix SmallVector's resize() method (#4979)Alon Zakai2022-08-291-0/+35
| | | | A resize from a large amount to a small amount would sometimes not clear the flexible storage, if we used it before but not after.
* LiteralList => Literals (#4451)Alon Zakai2022-01-131-5/+16
| | | | | | | LiteralList overlaps with Literals, but is less efficient as it is not a SmallVector. Add reserve/capacity methods to SmallVector which are now necessary to compile.
* Clang-format c/cpp files in test directory (#4192)Heejin Ahn2021-09-291-4/+2
| | | | | | | | | This clang-formats c/cpp files in test/ directory, and updates clang-format-diff.sh so that it does not ignore test/ directory anymore. bigswitch.cpp is excluded from formatting, because there are big commented-out code blocks, and apparently clang-format messes up formatting in them. Also to make matters worse, different clang-format versions do different things on those commented-out code blocks.
* SmallVector (#1912)Alon Zakai2019-02-251-0/+68
Trying to refactor the code to be simpler and less redundant, I ran into some perf issues that it seems like a small vector, with fixed-size storage and optional additional storage as needed, might help with. This implements that class and uses it in a few places. This seems to help, I see some 1-2% fewer instructions and cycles in `perf stat`, but it's hard to tell if it really makes a noticeable difference.