btwael/SuperString
View on GitHub ↗ ★ 299 C++
A fast and memory-optimized string library for C++
5 mentions on Hacker News by 4 people: 1 story, 4 comments · first 2018-04-11 · latest 2018-04-12
20082026
-
Actually, the UTF-8 decoding is broken even with proper input . This https://github.com/btwael/SuperString/blob/master/src/SuperS... will make `pointer` and `i` be out of sync, so everything after the first multibyte sequence is a coin…
comment by bananapeel · 2018-04-12 · in Show HN: SuperString – A fast and memory-optimized string library for C++ -
…case I guess. :) +// in case NULL is not defined +#ifndef NULL +#define NULL (0L) +#endif // NULL https://github.com/btwael/SuperString/commit/515f6896ee6a3e2...
comment by therein · 2018-04-12 · in Show HN: SuperString – A fast and memory-optimized string library for C++ -
…that all are advertising his non-production ready projects) certainly gives a similar vibe. :) [0] https://github.com/btwael/SuperString/commits/master
comment by therein · 2018-04-12 · in Show HN: SuperString – A fast and memory-optimized string library for C++ -
Probably because his benchmark is broken. It always copies to the end of the file. https://github.com/btwael/SuperString/blob/master/test/withS... this line should be ` lines.push_back(string.substr(last, i - last));` (it also drops the…
comment by a_t48 · 2018-04-12 · in Show HN: SuperString – A fast and memory-optimized string library for C++