4 ms·
Over time, for my needs, I've gravitated back to fixed-size buffers. There are many apps where it really doesn't matter that they handle any string ever without
by parasti 2y ago
Over time, for my needs, I've gravitated back to fixed-size buffers. There are many apps where it really doesn't matter that they handle any string ever without truncation. A string is too long and won't fit? Whoops, just use a shorter one.
- acuozzo 2y agoSame here. It has become easier and more defensible to do so today with gobs of RAM, even in the embedded space (somewhat). You no longer need to worry about running out of stack space, even in a deep call-stack with each function having its own little set of buffers for strings.