[PATCH 0/7] put struct symbol & friends on diet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux