Refactor parser to be lenient on values#58
Conversation
|
Perf tests before: After: Arguably not much performance change but the changes aren't easy to do in a regex only. |
|
Realized there is an optimization available for getting rid of |
|
Just one question before I continue reviewing, will this be a new major version? I assume so, or not? Just asking so I can better align with what you’re planning to do. |
|
Yes, sorry. I mentioned a major in the typescript PR so this plus follow ups beyond this to further optimize by removing old code paths will be a major. I tried to change minimal things in this PR on the API side to get a fair comparison on benchmarks. |
6fc2c12 to
cc480a1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## be/typescript #58 +/- ##
===============================================
Coverage 100.00% 100.00%
===============================================
Files 1 1
Lines 97 137 +40
Branches 40 55 +15
===============================================
+ Hits 97 137 +40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Accidentally deleted rebasing my 3rd branch from main due to the TypeScript PR changes. 😓 |
Building on #57 for benchmarking. Rewrites the parser to be incremental without regex validation, and more lenient for upstream dependents who need things like
foo=bar=bazto be parsed correctly.