-
Notifications
You must be signed in to change notification settings - Fork 50k
[Flight] Serialize weird numbers #26623
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
Conversation
6c4db12 to
270582a
Compare
270582a to
2264ffc
Compare
| } | ||
| case '-': { | ||
| // $-0 or $-Infinity | ||
| if (value[2] === '0') { |
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.
Because of interning and that you don’t have to do a type check, so there’s nothing to recompile during a deopt, it might be better to just compare to the full string.
The reason not to do it for the outer check is that the common case needs to extract a partial anyway so we’re just using the same case.
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.
ok #26629
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.
for the outer switch – I was thinking about it last night and I wonder if switching on charCodeAt is likely faster?
Maybe this is faster. facebook#26623 (comment)
Maybe this is faster. #26623 (comment)
Maybe this is faster. #26623 (comment) DiffTrain build for [2bfe4b2](2bfe4b2)
This reverts commit 2bfe4b2.
This reverts commit ab2385f.
Maybe this is faster. #26623 (comment)
Maybe this is faster. facebook/react#26623 (comment) DiffTrain build for [2bfe4b246f58d1f8d357f984fba9a8aa1fa79c73](facebook/react@2bfe4b2)
Maybe this is faster. facebook#26623 (comment)
DiffTrain build for commit ab2385f.
Maybe this is faster. facebook/react#26623 (comment) DiffTrain build for commit facebook/react@2bfe4b2.
No description provided.