Skip to content

Commit

Permalink
[PATCH] kallsyms: change compression algorithm
Browse files Browse the repository at this point in the history
This patch changes the way the compression algorithm works.  The base
algorithm is similiar to the previous but we force the compressed token
size to 2.

Having a fixed size compressed token allows for a lot of optimizations, and
that in turn allows this code to run over *all* the symbols faster than it
did before over just a subset.

Having it work over all the symbols will make it behave better when symbols
change positions between passes, and the "inconsistent kallsyms" messages
should become less frequent.

In my tests the compression ratio was degraded by about 0.5%, but the
results will depend greatly on the number of symbols to compress.

Signed-off-by: Paulo Marques <pmarques@grupopie.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Paulo Marques authored and Linus Torvalds committed Sep 7, 2005
1 parent e82894f commit b3dbb4e
Showing 1 changed file with 95 additions and 329 deletions.
Loading

0 comments on commit b3dbb4e

Please sign in to comment.