forked from pool/xxhash
fix usage of DISPATCH=1 #1
Reference in New Issue
Block a user
Delete Branch "bruno_friedmann/xxhash:fix-dispatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello Jan,
Finally got some time to work a bit on this. I've made some tests after the proposed changes, and the result looks like this on my computer.
My changes may be like
cowboyor naive style, but there's a performance gain. and the dispatch header is now present to be packaged.I can adapt eventually more or if you need more feedback just comment.
set -O2, we patch optflags to use -O3
obtain an optimized binary, and also get dispatch header installed
in include
Signed-off-by: Bruno Friedmann bruno@ioda-net.ch
- upstream will activate optimization only with -O3 but %{optflags} set -O2, we patch optflags to use -O3 - DISPATCH=1 seem to be needed on make / make install line call to obtain an optimized binary, and also get dispatch header installed in include Signed-off-by: Bruno Friedmann <bruno@ioda-net.ch>Your numbers (relative gains) don't validate here.
Even the absolute numbers are out of whack. I am the one having the weaker CPU (1135G7, compared to your 1185G7) and yet,where you have
real 0m0.427sI have0m0.258swith the stock xxhash already.The timing benefits could not be established. PR conflicting since; closing.
Pull request closed