diff options
author | Bob Pearson <rpearson@systemfabricworks.com> | 2012-03-23 23:02:24 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 00:58:37 +0100 |
commit | 0292c497b6b942557d085b37f888ef5865f67d37 (patch) | |
tree | fe88508060c0ecdf8fb3d5e98ca2c55057cc5068 /COPYING | |
parent | crc32: add slice-by-8 algorithm to existing code (diff) | |
download | linux-0292c497b6b942557d085b37f888ef5865f67d37.tar.xz linux-0292c497b6b942557d085b37f888ef5865f67d37.zip |
crc32: optimize loop counter for x86
Add two changes that improve the performance of x86 systems
1. replace main loop with incrementing counter this change improves
the performance of the selftest by about 5-6% on Nehalem CPUs. The
apparent reason is that the compiler can use the loop index to perform
an indexed memory access. This is reported to make the performance of
PowerPC CPUs to get worse.
2. replace the rem_len loop with incrementing counter this change
improves the performance of the selftest, which has more than the usual
number of occurances, by about 1-2% on x86 CPUs. In actual work loads
the length is most often a multiple of 4 bytes and this code does not
get executed as often if at all. Again this change is reported to make
the performance of PowerPC get worse.
[djwong@us.ibm.com: Minor changelog tweaks]
Signed-off-by: Bob Pearson <rpearson@systemfabricworks.com>
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions