Continuing from: #189
Consider this:
constexpr auto limit = cista::generic_string<>::short_length_limit;
using string = cista::raw::string;
auto size_m3 = string("", limit - 3).size();
auto size_m1 = string("", limit - 1).size();
auto size_m0 = string("", limit - 0).size();
auto size_p0 = string("", limit + 0).size();
auto size_p1 = string("", limit + 1).size();
auto size_p3 = string("", limit + 3).size();
Everything above small-optimization limit gives "right size", i.e.: size_p1 is 16 and size_p3 is 18, whereas non-heaps gives 0.
Would be nice to get consistent behavior here.
...be sparkled 🥳 by an idea from: #187 (comment)
Continuing from: #189
Consider this:
Everything above small-optimization
limitgives "right size", i.e.:size_p1is 16 andsize_p3is 18, whereas non-heaps gives 0.Would be nice to get consistent behavior here.
...be sparkled 🥳 by an idea from: #187 (comment)