small_vector
svector
small_vector | svector | |
---|---|---|
1 | 3 | |
41 | 94 | |
- | - | |
6.6 | 0.0 | |
7 months ago | 4 months ago | |
C++ | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
small_vector
-
std::forward_list vs std::vector compiler optimizations
Hey, if you were still shopping around, you could give my implementation a shot. Note that it does not have the decoupled buffer feature as you mentioned below, but it is quite richly featured. Fair warning, if you do use this you are a tester, as I haven't found the time to write very many tests yet.
svector
-
If you limit an std::string in a class to be < 15 characters, can you assume that any time the string is read it will stay on the stack due to SSO?
It would be possible to do a much more compact SSO, but I think they've done it this way for performance reason. E g. I've implemented a vector with SSO, and there i only have 1 byte overhead: https://github.com/martinus/svector
- GitHub - martinus/svector: Small Vector optimization
What are some alternatives?
Simple-Utility
refl-cpp - Static reflection for C++17 (compile-time enumeration, attributes, proxies, overloads, template functions, metaprogramming).
au - A C++14-compatible physical units library with no dependencies and a single-file delivery option. Emphasis on safety, accessibility, performance, and developer experience.
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
matchit.cpp - match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
lvc - Collection of C++ containers extracted from LLVM
tomlplusplus - Header-only TOML config file parser and serializer for C++17.
mp-units - The quantities and units library for C++
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more