Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork476
Regex Improvements#4310
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Regex Improvements#4310
Uh oh!
There was an error while loading.Please reload this page.
Conversation
6773918 to79a75afCompare- inline the take_while_ascii_pred function- change flag handling to stack allocation by using a fixed sized array- Parse regex literals at an earlier opportunity when inspecting expressions
79a75af to6a7dcdfComparecodecovbot commentedJul 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #4310 +/- ##==========================================+ Coverage 47.24% 50.31% +3.07%========================================== Files 476 498 +22 Lines 46892 49924 +3032 ==========================================+ Hits 22154 25120 +2966- Misses 24738 24804 +66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
AdithyaLaakso commentedAug 5, 2025
I took your suggestion in the issues and made a new function for this issue using an arrayvec which I believe will be marginally more memory efficient in the vast majority of cases (where no flags are given) than allocating an array. Additionally, I added error handling for the case where more than 8 regex flags are added and preserved the original version of the function for future use. However, your pull request covers a lot of area that mine does not we should merge them! |
Uh oh!
There was an error while loading.Please reload this page.