3 ms·
Ability to prefix fields by size. Which in turn means you can't preallocate buffers because you don't know the sizes in advance.
by rumcajz 11y ago
Ability to prefix fields by size. Which in turn means you can't preallocate buffers because you don't know the sizes in advance.
- nly 11y agoMeh, you're probably going to want to limit your buffer size anyway in any highly concurrent system. Assuming you need to scan them anyway, delimited fields can also be faster to scan. If a field can't contain 0x00, and is 0x00 terminated (you can ensure this), then you don't need to do as many bounds-checks. If you know what you're doing, then Ragels 'noend' directive enables this, for instance.