Re: [PATCH] refscale: Optimize process_durations()

From: Davidlohr Bueso
Date: Mon Oct 30 2023 - 13:04:44 EST


On Sat, 28 Oct 2023, Christophe JAILLET wrote:

process_durations() is not a hot path, but there is no good reason to
iterate over and over the data already in 'buf'.

Using a seq_buf saves some useless strcat() and the need of a temp buffer.
Data is written directly at the correct place.

Makes sense.

Reviewed-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>