All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] put struct symbol & friends on diet
@ 2017-06-29  5:16 Luc Van Oostenryck
  2017-06-29  5:16 ` [PATCH 1/7] use long for all mem stats Luc Van Oostenryck
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Luc Van Oostenryck @ 2017-06-29  5:16 UTC (permalink / raw)
  To: linux-sparse; +Cc: Christopher Li, Luc Van Oostenryck

The goal of this series is to decrease sparse's memory consumption
by decreasing the size of some of the structure.

What can be win with these small changes is quite appreciable:
about 30% with some gain in speed too (but this are harder to
put numbers on it, 5% or a bit more seems quite common for
big files).

It should be noted that those gains come almost entirely from
the LIST_NODE_NR change which halves the size of struct ptrlist,
a very heavily used structure.


Luc Van Oostenryck (7):
  use long for all mem stats
  diet: use smaller LIST_NODE_NR (29 -> 13)
  diet: remove unused struct scope::token
  diet: remove unused struct symbol::arg_count
  diet: remove unused struct symbol::value
  diet: squeeze struct symbol's members
  diet: squeeze struct ctype's members

 allocate.c     |  2 +-
 allocate.h     |  3 ++-
 compile-i386.c | 12 ++++++------
 ptrlist.h      |  2 +-
 scope.h        |  1 -
 show-parse.c   |  8 ++++----
 symbol.h       | 12 ++++++------
 7 files changed, 20 insertions(+), 20 deletions(-)

-- 
2.13.0


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

end of thread, other threads:[~2017-07-03  8:51 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  5:16 [PATCH 0/7] put struct symbol & friends on diet Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 1/7] use long for all mem stats Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 2/7] diet: use smaller LIST_NODE_NR (29 -> 13) Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 3/7] diet: remove unused struct scope::token Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 4/7] diet: remove unused struct symbol::arg_count Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 5/7] diet: remove unused struct symbol::value Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 6/7] diet: squeeze struct symbol's members Luc Van Oostenryck
2017-06-29  5:16 ` [PATCH 7/7] diet: squeeze struct ctype's members Luc Van Oostenryck
2017-06-29 22:04 ` [PATCH 0/7] put struct symbol & friends on diet Christopher Li
2017-07-01  8:45   ` Luc Van Oostenryck
2017-07-01 19:14     ` Christopher Li
2017-07-03  8:51       ` Luc Van Oostenryck
2017-06-30  8:13 ` Christopher Li
2017-07-01  8:39   ` Luc Van Oostenryck
2017-07-01 19:51     ` Christopher Li
2017-07-01 21:02       ` Luc Van Oostenryck
2017-07-01 21:28         ` Christopher Li
2017-07-02 21:17           ` Luc Van Oostenryck
2017-07-01 21:03     ` Christopher Li

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.