-
Notifications
You must be signed in to change notification settings - Fork 140
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
Improve constant-sized type parsing #1613
Improve constant-sized type parsing #1613
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit f615bea Results
|
4aa03b8
to
8cfc45e
Compare
Codecov Report
@@ Coverage Diff @@
## master #1613 +/- ##
==========================================
+ Coverage 74.73% 74.77% +0.04%
==========================================
Files 288 288
Lines 55340 55407 +67
==========================================
+ Hits 41357 41433 +76
+ Misses 12489 12481 -8
+ Partials 1494 1493 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Thanks for adding the negative literal test. I initially did wonder what would happen for the negative literals, but realized it would still be handled, because the next token is the not the 'literal'. Always nice to have a test case 👌
Description
Optimize parsing of the size in constant-sized types by directly checking for an integer literal.
master
branchFiles changed
in the Github PR explorer