[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87bjpry67n.fsf@trenco.lwn.net>
Date: Thu, 10 Jul 2025 17:30:20 -0600
From: Jonathan Corbet <corbet@....net>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Cc: linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, Akira Yokosawa
<akiyks@...il.com>
Subject: Re: [PATCH 12/12] docs: kdoc: Improve the output text accumulation
Mauro Carvalho Chehab <mchehab+huawei@...nel.org> writes:
> With that, I would just drop this patch, as the performance is
> almost identical, and using "emit()" instead of "+=" IMO makes
> the code less clear.
I've dropped the patch - for now - but I really disagree with the latter
part of that sentence. It is far better, IMO, to encapsulate the
construction of our output rather than spreading vast numbers of direct
string concatenations throughout the code. So this one will likely be
back in a different form :)
Thanks,
jon
Powered by blists - more mailing lists