-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to wyhash from CRC for capture tile diff #301
Conversation
Originally suggested by @trishume at neutrinolabs#167.
Originally developed @trishume.
I tested both wyhash and xxhash64 with lazy color convert. See #300 for results. I'm inclined to use wyhash. @jsorg71 @Nexarian @matt335672 Any thoughts about which hash algorithm to use? |
I'll agree meta, I feel like we vetted wyhash well. I'm not concerned about the author as this is not used for security. |
I think you've done a great job looking at this @metalefty. Because wyhash has been tested already, that would be my preferred option. You've also shown that replacing this in the future is straightforward, if we need to. |
Merging this. |
This is a cut out of #167 and a effort to address #300, originally suggested by @trishume. Removed scroll detection for simplicity at the moment.
After switching to wyhash, CPU usage is reduced by 1/2 to 1/3. I think there is more room to reduce using other hash algorithm with hardware acceleration.