Skip to content
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 tokenizer regex matching #131

Merged
merged 4 commits into from
Jun 22, 2024
Merged

Conversation

mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Jun 11, 2024

extracted from #119 as requested

Total runtime reduction is about -70%.

src/Tokenizer.php Outdated Show resolved Hide resolved
src/Tokenizer.php Outdated Show resolved Hide resolved
@mvorisek mvorisek force-pushed the fix_perf2 branch 2 times, most recently from 236b6e5 to fda3d6e Compare June 12, 2024 08:46
@mvorisek mvorisek requested a review from greg0ire June 12, 2024 08:50
@mvorisek
Copy link
Contributor Author

I would be happy if this PR can be merged so I can work on follow up PRs.

Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regex aren't easy to review. especially when they get concatinated with variables.

@greg0ire greg0ire added this to the 1.5.0 milestone Jun 22, 2024
@greg0ire greg0ire added the enhancement New feature or request label Jun 22, 2024
@greg0ire greg0ire merged commit 9fcd0ac into doctrine:1.5.x Jun 22, 2024
10 checks passed
@greg0ire
Copy link
Member

Thanks @mvorisek !

@mvorisek mvorisek deleted the fix_perf2 branch June 22, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants