Thread (3 messages) 3 messages, 3 authors, 26d ago

Re: [PATCH perf-tools-next] perf list: Avoid repeated strlen when escaping JSON strings

flat view

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2026-09-13 21:45:40
Also in: lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help