On Thu, 14 Oct 2021 at 04:58, 'Tim Hockin' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> Thanks for confirming.  I wrote that function and erased a good bit of the
> overhead.
>
> bytes.Buffer for the no-escapes path and strconv.Quote otherwise.
>

Could you not use strconv.AppendQuote and get the advantage without needing
the extra scan?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAJhgacj7ysHbZR1M7j7-B-bNR9ceZco5B-1%3DUYqYrcWRvikW1A%40mail.gmail.com.

Reply via email to