4 ms·
Sds from Antirez has a lot of the same features (not all), and is kept updated since it's used by redis and other projects. https://github.com/antirez/sds/blob
by tyingq 7y ago
Sds from Antirez has a lot of the same features (not all), and is kept updated since it's used by redis and other projects. https://github.com/antirez/sds/blob/master/README.md https://github.com/antirez/sds/blob/master/README.md
Vstr appears to have last been updated in 2006. It does have a comparison of different string libraries, though that's also dated: http://www.and.org/vstr/comparison http://www.and.org/vstr/comparison
- cowsandmilk 7y agoSDS and this library are implemented completely differently...
- endorphone 7y ago"Vstr" seems to target zero-copy by storing a string as a collection of blocks of data. Sds, from my reading, is essentially Pascal strings for C. They don't seem to be comparable.
- tyingq 7y agoIt also targets "string like buffers" with arbitrary nulls, appends, splitting on a delimiter, and tokenizing. Yes, it works differently, and isn't readv/writev centric.
- optimuspaul 7y ago2006 being the last update makes me not want to use it. But I suspect it is a stable library that doesn't need much update. I'm just getting back into c/c++ development and I'm very interested in libraries like these.
- robobro 7y ago> 2006 being the last update makes me not want to use it. Why
- optimuspaul 7y agosecurity concerns, might be unfounded, but something to consider
- coliveira 7y agoC is an old language, some of the best libraries are stable for 20 years now.