diff options
author | Mandeep Singh Baines <[email protected]> | 2011-08-05 18:46:27 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-08-06 11:26:52 -0700 |
commit | 1eb19a12bd2214cdcad5273d472b062a4ba97fa1 (patch) | |
tree | a88b76f31a4ea5e3631581be249759fcf4b05a08 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | de96355c111679dd6e2c5c73e25e814c72510c58 (diff) |
lib/sha1: use the git implementation of SHA-1
For ChromiumOS, we use SHA-1 to verify the integrity of the root
filesystem. The speed of the kernel sha-1 implementation has a major
impact on our boot performance.
To improve boot performance, we investigated using the heavily optimized
sha-1 implementation used in git. With the git sha-1 implementation, we
see a 11.7% improvement in boot time.
10 reboots, remove slowest/fastest.
Before:
Mean: 6.58 seconds Stdev: 0.14
After (with git sha-1, this patch):
Mean: 5.89 seconds Stdev: 0.07
The other cool thing about the git SHA-1 implementation is that it only
needs 64 bytes of stack for the workspace while the original kernel
implementation needed 320 bytes.
Signed-off-by: Mandeep Singh Baines <[email protected]>
Cc: Ramsay Jones <[email protected]>
Cc: Nicolas Pitre <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions