Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734999

Re: [PATCH] btrfs: make array types static const, reduces object code size

From David Sterba <dsterba@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH] btrfs: make array types static const, reduces object code size
Date 2017-09-19 17:20 +0200
Message-ID <urstz-77o-3@gated-at.bofh.it> (permalink)
References <ursjU-74b-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Sep 19, 2017 at 04:01:23PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Don't populate the read-only array types on the stack, instead make
> it static const.  Makes the object code smaller by nearly 60 bytes:
> 
> Before:
>    text	   data	    bss	    dec	    hex	filename
>   90536	   6552	     64	  97152	  17b80	fs/btrfs/ioctl.o
> 
> After:
>    text	   data	    bss	    dec	    hex	filename
>   90414	   6616	     64	  97094	  17b46	fs/btrfs/ioctl.o
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Reviewed-by: David Sterba <dsterba@suse.com>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] btrfs: make array types static const, reduces object code size Colin King <colin.king@canonical.com> - 2017-09-19 17:10 +0200
  Re: [PATCH] btrfs: make array types static const, reduces object  code size David Sterba <dsterba@suse.cz> - 2017-09-19 17:20 +0200

csiph-web