Closed agriffis closed 3 years ago
Name | Link |
---|---|
Latest commit | 6df53328897321382a42111ceac8ae8f99f99d78 |
Latest deploy log | https://app.netlify.com/sites/xstyled/deploys/607435088847890008e3f880 |
@agriffis you can target next too for this one
Ah, it looks like I could fast-forward merge with the "rebase and merge" option in GitHub (even though it was already rebased, so there was nothing to do)
Summary
Checking
propSet.has()
takes about 1/20 the time as checkingprops.includes()
for the 2500+ props in xstyled v2.Even with a shorter list, say 100 props, it's still 1/2 the time, so this perf benefit carries over from v2 to v3.
Test plan
I didn't test the perf difference directly with xstyled, but simple node. All times in milliseconds.
2500 element test
100 element test