Re: [PATCH perf-tools-next] perf list: Avoid repeated strlen when escaping JSON strings
From: Arnaldo Carvalho de Melo
Date: Sun Sep 13 2026 - 17:45:59 EST
On Thu, Sep 10, 2026 at 09:38:39PM +0900, Qerogram wrote:
> The %S conversion in fix_escape_fprintf() calls strlen(s) in the loop
> condition while escaping each character. GCC 14.2.0 retains this call
> inside the loop in a normal DEBUG=0 (-O3) perf build, repeatedly scanning
> the whole string.
Thanks, applied to perf-tools-next, for v7.4.
- Arnaldo