3 ms·
I disagree with him on the first; character-delimited strings are a pain. If you're going to hand parse, you're better off with a <length>:<bytes> encoding like
by icebraining 13y ago
I disagree with him on the first; character-delimited strings are a pain. If you're going to hand parse, you're better off with a <length>:<bytes> encoding like Bencode uses. You don't have to escape the string, you can copy a whole block instead of scanning character by character and it plays well with UTF-8.