[PATCH 0/2] Fix 'already_tokenized()' performance problem

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

 



This series of two trivial patches makes 'already_tokenized()' go away 
from profiles of a kernel build with C=2, shaving about 3-4% off the time 
for me.

This came up in a discussion on another tech board, and people were 
complaining that I hadn't optimized the pre-processor sufficiently.

(Depending on compiler, usually the profile will show 'strcmp()' taking 
all the time - it depends on whether the strcmp gets inlined or not)

Linus Torvalds (2):
  Add new streams to a hash-list based on their names
  Teach 'already_tokenized()' to use the stream name hash table

 pre-process.c |    8 +++++---
 token.h       |    3 ++-
 tokenize.c    |   25 ++++++++++++++++++++++++-
 3 files changed, 31 insertions(+), 5 deletions(-)

-- 
1.7.5.rc1.1.gc3f61.dirty

--
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