[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <557AA816.4060102@ti.com>
Date: Fri, 12 Jun 2015 12:36:22 +0300
From: Tomi Valkeinen <tomi.valkeinen@...com>
To: Rasmus Villemoes <linux@...musvillemoes.dk>,
Thomas Winischhofer <thomas@...ischhofer.net>,
Jean-Christophe Plagniol-Villard <plagnioj@...osoft.com>
CC: <linux-fbdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drivers/video/fbdev/sis/sis_main.c: avoid repeated strlen()
calls
On 09/06/15 16:04, Rasmus Villemoes wrote:
> gcc is not smart enough to realize that strlen(strbuf1) cannot be
> changed by the loop body, so it is forced to recompute it, at least in
> the branch containing the assignment. Avoid this by using an
> equivalent stopping condition.
Does it matter? Is sisfb calling sisfb_search_mode thousands of times?
Tomi
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists