RESP uses prefixed lengths to transfer bulk data, so there is never a need to scan the payload for special characters like it happens for instance with JSON, nor to quote the payload that needs to be sent to the server.
The Bulk and Multi Bulk lengths can be processed with code that performs a single operation per character while at the same time scanning for the CR character, like the following C code:
I'm really excited to see how this goes because the "static" YAML config for a typical Agent setup (e.g. scrape metrics from pods in a Kubernetes cluster) is quite verbose and difficult to figure out unless you already know exactly what you're doing. I always end up having to find somewhere to copy/paste it from :)