-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
Make NoWork big instead of small #13904
Conversation
Ran these, then prettier, then these again. ``` codemod --accept-all -d packages -m '\(\s*([a-zA-Z.]+) === NoWork\s*\|\|\s*\1 (>=?) ([a-zA-Z.]+)\s*\)' '(\1 \2 \3)' codemod --accept-all -d packages -m '\(\s*([a-zA-Z.]+) === NoWork\s*\|\|\s*([a-zA-Z.]+) (<=?) \1\s*\)' '(\2 \3 \1)' codemod --accept-all -d packages -m '(?<![.\w])([a-zA-Z.]+) !== NoWork\s*&&\s*\1 (<) ([a-zA-Z.]+)' '\1 \2 \3' codemod --accept-all -d packages -m '(?<![.\w])([a-zA-Z.]+) !== NoWork\s*&&\s*([a-zA-Z.]+) (>) \1' '\2 \3 \1' codemod --accept-all -d packages -m '(?<![.\w])([a-zA-Z.]+) === NoWork\s*\|\|\s*\1 (>=?) ([a-zA-Z.]+)\s*\?\s' '\1 \2 \3 ? ' codemod --accept-all -d packages -m '(?<![.\w])([a-zA-Z.]+) === NoWork\s*\|\|\s*([a-zA-Z.]+) (<=?) \1\s*\?\s' '\2 \3 \1 ? ' ```
ReactDOM: size: 🔺+0.3%, gzip: -0.2% Details of bundled changes.Comparing: 7268d97...93e0bdf react-dom
react-art
react-test-renderer
react-reconciler
react-native-renderer
scheduler
Generated by 🚫 dangerJS |
bigger?! I guess we inline 1073741823 a bunch of times? |
Probably could change Closure hereabouts if we wanted to not inline it every time. But maybe that's slow. https://github.com/google/closure-compiler/blob/85643a17293ac09253dcf8017404136d28942fc4/src/com/google/javascript/jscomp/InlineVariables.java#L725 |
I think I would prefer the inverse and start the timer at the max int going backwards. That speaks to the notion of higher “priority” being a higher number. We always end up having to say “higher, and by higher I mean lower number”. Would be nicer to just talk about priority. That would leave NoWork being falsy which is a nice property. Offscreen pri gets a nice expressable number. And it would solve the file size issue. |
Look at all the code we don't need!