-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fast color parsing #1443
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 p 8000 rivacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fast color parsing #1443
Conversation
var isNumeric = require('fast-isnumeric'); | ||
var rgba = require('color-rgba'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add color-rgba
to the package.json and push again?
I'll be interesting to see if the tests pass on CI ...
@etpinard whoops, done. |
@etpinard ok, it speeds up color parsing compared to the previous one, but in total it seems to be not the biggest bottleneck. |
@dfcreative any perf improvements are always welcome 🐎 Look like one 3D mock is failing though |
@etpinard fixed that case. Turned out some marker colors are (mistakenly) parsed from numbers, and color-parse treats numbers as possible color values. |
Looks like commit 22eacec broke a few things. @dfcreative do you think you'll have the time to make the tests go ✅ again in the nex
8000
t few days? If not, I'll drop it from the |
@etpinard yes, sure, I'll give it a shot tonight. |
@etpinard may I ask you to run baselines to show list of broken ones? I am having a hard time getting info from circleci. Would appreciate |
Sure. Merging |
@etpinard there are two failed tests, looks like they are not related to colors. Should I try to reproduce them or it is transitional thing? |
Oh shit. Yeah I've seen those tests fail intermittently. Don't worry about them. Thanks again for this PR 🎉 |
Sweet. Tests are ✅ again. Looks like the broken tests I mentioned in #1443 (comment) where simply due to Thanks @dfcreative !! |
Implement faster color parsing for the
gl-scatter2d-sdf
module.