From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Mark Brown <broonie@kernel.org>,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] regmap: Reorder fields in 'struct regmap_bus' to save some memory
Date: Mon, 6 Mar 2023 16:29:21 +0200 [thread overview]
Message-ID: <ZAX4wSFwKwr+2pZY@smile.fi.intel.com> (raw)
In-Reply-To: <077ca39622c8870a3ea932298a9cec34f7a8295a.1676363976.git.christophe.jaillet@wanadoo.fr>
On Tue, Feb 14, 2023 at 09:40:14AM +0100, Christophe JAILLET wrote:
> Group some bool variables to reduce hole and avoid padding.
> On x86_64, this shrinks the size from 136 to 128 bytes.
>
> As an example:
>
> $ size drivers/base/regmap/regmap-fsi.o (Before)
> text data bss dec hex filename
> 4837 136 0 4973 136d drivers/base/regmap/regmap-fsi.o
>
> $ size drivers/base/regmap/regmap-fsi.o (After)
> text data bss dec hex filename
> 4701 136 0 4837 12e5 drivers/base/regmap/regmap-fsi.o
FYI: we have scripts/bloat-o-meter for this.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2023-03-06 14:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 8:40 [PATCH] regmap: Reorder fields in 'struct regmap_bus' to save some memory Christophe JAILLET
2023-02-14 18:01 ` Mark Brown
2023-03-06 14:29 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZAX4wSFwKwr+2pZY@smile.fi.intel.com \
--to=andriy.shevchenko@intel.com \
--cc=broonie@kernel.org \
--cc=christophe.jaillet@wanadoo.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox