-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Improve color operations performance #1263
Improve color operations performance #1263
Commits on Oct 27, 2023
-
Update phash.js - improve intToRGBA performance
Converted to bitwise operators to improve performance at high volumes.
Configuration menu - View commit details
-
Copy full SHA for 1893b72 - Browse repository at this point
Copy the full SHA 1893b72View commit details -
Update index.js - Improve performance of rgbaToInt
Converted math to bitwise operators to improve performance at high volumes.
Configuration menu - View commit details
-
Copy full SHA for 96f96e0 - Browse repository at this point
Copy the full SHA 96f96e0View commit details -
Update index.js - Improve performance of hasAlpha
Moved any repetitive mathematical operations outside the core loop and simplified accessors to allow for maximum JIT compile optimizations to take place.
Configuration menu - View commit details
-
Copy full SHA for c2386db - Browse repository at this point
Copy the full SHA c2386dbView commit details -
Update index.js - Improve performance of get/setPixelColor
Remove redundant calls to Math.round as it is called again within getPixelIndex in both cases.
Configuration menu - View commit details
-
Copy full SHA for 126876c - Browse repository at this point
Copy the full SHA 126876cView commit details -
Update index.js - Fix high bit on color conversion can cause negative…
… number Added operation to ensure 32-bit color output is interpreted as a positive integer.
Configuration menu - View commit details
-
Copy full SHA for 7fb6e6e - Browse repository at this point
Copy the full SHA 7fb6e6eView commit details -
Update index.js - Fix negative color value (again)
Final operation can "re-negate" the value - moved the conversion to unsigned int to be after alpha integration into the value.
Configuration menu - View commit details
-
Copy full SHA for 9b43f47 - Browse repository at this point
Copy the full SHA 9b43f47View commit details
Commits on Oct 29, 2023
-
Update phash.js - fixed negatives the other way
Also issues with high-bit values going from int to RGBA - fixed.
Configuration menu - View commit details
-
Copy full SHA for 1117d89 - Browse repository at this point
Copy the full SHA 1117d89View commit details
Commits on Feb 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2b1cde5 - Browse repository at this point
Copy the full SHA 2b1cde5View commit details