[internal] Iterate on resolveMultipleLabels in one loop#3709
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Actually, this PR/type of opportunity, combined with #3688 makes me think of
I could definitely see a working program where we reward $ for every byte minified and gzipped that people manage to save without harming the readability or features. Is there 10,000 bytes that can be saved? Probably. Is there 15,000? That would be harder. 20,000? That sounds really hard, but impactful. I would love to see AI improve enough to the point where it can make it happen. @cristianbote's https://goober.rocks/the-great-shave-off set a cool precedent for this. One limit: it seems hard to get people to move the needle: https://opencollective.com/goober/expenses had like 2-3 rewards distributed. But at least it can serve as proof of our commitment, we care. So we should increase the minified gzipped byte saved -> $ ratio. We can try x1.5. Saving 15,000 bytes would mean distributing $20,000. As for changes that lead to large payouts, I have proposed in the Notion page ⬆️ a way to stay fair for the smaller, harder improvements. This should encourage keeping PRs scopped too, easier to review, revert. cc @mnajdova for awareness. |
|
Ok, let's try an experimental pilot version of this, we copy the name "The great shave off" 😁. Notion page updated. This way we will learn if it works, and we can fix what doesn't make much sense. We got our first bounty with #3805 from @sai6855 -24B gzipped -> $36. |
|
@oliviertassinari this is fantastic! 😄 Is there an announcement or a page where the challenge is presented? I wanna share it around in my network as well and drive more attention. |
|
@cristianbote We have no public announcement at this stage. The only page is the public Notion page above. I think we should be in an experimental phase. I think we should first try to figure out if the operational aspect of it works:
|
Iterate on #3314.
Use a bit fewer byles:

and fewer CPU cycles by moving from looping twice on the data to once. It's a classic performance win that Romain had a lot of success with on the data grid codebase.