News for hackers. Stuff that matters.
Re:Appending to an std:string character-by-character: how do... by kevinventullo on Thursday October 26, 2023 @07:27PM (#38032956)
It’s a stretch, but perhaps this is related to the desire to avoid hash tables which are of size exactly a power of two?

https://cs.stackexchange.com/questions/19020/why-should-one-...

Re:Appending to an std:string character-by-character: how do... by pjscott on Thursday October 26, 2023 @07:50PM (#38033120)
LLVM's libc++ doesn't use a generic growable vector thing for std::string; they rolled their own, specifically for strings. (I checked the source. Alas, no explanatory comments and nothing in the "initial libc++ import" git commit message.)