mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/7] vsprintf: reduce code size and clean up
@ 2009-11-04 14:39 André Goddard Rosa
  0 siblings, 0 replies; only message in thread
From: André Goddard Rosa @ 2009-11-04 14:39 UTC (permalink / raw)
  To: Frederic Weisbecker, laijs, mingo, davem, akpm, harvey.harrison,
	linux list
  Cc: me

From: André Goddard Rosa <andre.goddard@gmail.com>
Date: Tue, 3 Nov 2009 11:21:39 -0200
Subject: [PATCH v3 0/7] vsprintf: reduce code size and clean up
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch reduces code size by 224 bytes on my Core 2 with gcc 4.4.1:

      text    data     bss     dec     hex filename
     15767       0       8   15775    3d9f lib/vsprintf.o-before
     15543       0       8   15551    3cbf lib/vsprintf.o-after

and implements some cleanups.

Changelog:
    v3: improved comments on patch 5/7 and factorize a switch statement on 6/7
as per suggestions from Ingo and Frederic (thanks!)
    v2: addressed feedback from Frederic Weisbecker review (thanks!!)
and split into separate patches
    v1: original submission

André Goddard Rosa (7):
  vsprintf: factorize "(null)" string
  vsprintf: pre-calculate final string length for later use
  vsprintf: give it some care to please checkpatch.pl
  vsprintf: use TOLOWER whenever possible
  vsprintf: reduce code size by avoiding extra check
  vsprintf: move local vars to block local vars and remove unneeded ones
  vsprintf: factor out skip_space code in a separate function

 lib/vsprintf.c |  307 +++++++++++++++++++++++++++++---------------------------
 1 files changed, 159 insertions(+), 148 deletions(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-04 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04 14:39 [PATCH v3 0/7] vsprintf: reduce code size and clean up André Goddard Rosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®