All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] simplify for-statement & make struct statement smaller
@ 2017-06-28 20:49 Luc Van Oostenryck
  2017-06-28 20:49 ` [PATCH 1/2] avoid some struct symbol member for for-statements Luc Van Oostenryck
  2017-06-28 20:49 ` [PATCH 2/2] make for-loop statement simpler Luc Van Oostenryck
  0 siblings, 2 replies; 6+ messages in thread
From: Luc Van Oostenryck @ 2017-06-28 20:49 UTC (permalink / raw)
  To: linux-sparse; +Cc: Christopher Li, Linus Torvalds, Luc Van Oostenryck

The goal of this two patches series is to make struct statement
smaller via a slight change in how for-statement's AST is build. 

On a 64bit machine the size of the struct, which was 80, is now
a round 64 bytes, 20% thus (but admittingly, the effect on the
total memory is quite small since statements represent less than
2% of the total memory used).

Note: this series is part of a larger effort to decrease the amount
      of memory used by sparse.


Luc Van Oostenryck (2):
  avoid some struct symbol member for for-statements
  make for-loop statement simpler

 ast-inspect.c  |  2 --
 compile-i386.c |  3 ---
 dissect.c      |  2 --
 evaluate.c     |  2 --
 expand.c       |  1 -
 inline.c       |  3 ---
 linearize.c    |  8 --------
 parse.c        | 30 +++++++++++++++++++++++-------
 parse.h        |  2 --
 show-parse.c   |  3 ---
 10 files changed, 23 insertions(+), 33 deletions(-)

-- 
2.13.0

      statements:   125292,   10023360,   10059776,  99.64%,    80.00
           total:  5725865,  563383738,  566362112,  99.47%,    98.39

      statements:   126693,    8108352,    8126464,  99.78%,    64.00
           total:  5891718,  430096434,  431620096,  99.65%,    73.00




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-01 14:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-28 20:49 [PATCH 0/2] simplify for-statement & make struct statement smaller Luc Van Oostenryck
2017-06-28 20:49 ` [PATCH 1/2] avoid some struct symbol member for for-statements Luc Van Oostenryck
2017-06-28 20:49 ` [PATCH 2/2] make for-loop statement simpler Luc Van Oostenryck
2017-06-29  0:18   ` Christopher Li
2017-06-29  3:18     ` Luc Van Oostenryck
2017-07-01 14:03       ` Bernd Petrovitsch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.