[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d92e1137-3d4c-8735-ceb4-4664a5803cdf@users.sourceforge.net>
Date: Tue, 24 Oct 2017 16:51:54 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Joe Perches <joe@...ches.com>, dri-devel@...ts.freedesktop.org,
intel-gfx@...ts.freedesktop.org,
intel-gvt-dev@...ts.freedesktop.org
Cc: Dan Carpenter <dan.carpenter@...cle.com>,
Garry Hurley <garry.hurley.jr@...il.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Zhi Wang <zhi.a.wang@...el.com>,
kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: drm/i915/gvt: Use common error handling code in
shadow_workload_ring_buffer()
>> … It's just that two out of three error
>> messages happened to be the same and Markus wants to save a bit of
>> memory by using the same string. The memory savings is not so big that
>> it's worth making the code less readable.
>
> I agree with Dan.
>
> It doesn't save any real memory either as the compiler/linker
> reuses the repeated string.
It might depend on passing appropriate parameters.
> It might, depending on the compiler, save a few bytes of
> object code as the compiler may not optimize the repeated
> call away though.
I am trying to show corresponding change possibilities.
> But a good compiler could do that too.
Do you prefer to delegate the proposed software refactoring
only to a corresponding optimiser?
Regards,
Markus
Powered by blists - more mailing lists