Skip to content

Issue 17161 - [REG 2.072.2] Massive Regex Slowdown#5113

Merged
JackStouffer merged 1 commit intodlang:stablefrom
JackStouffer:revert-regex
Feb 12, 2017
Merged

Issue 17161 - [REG 2.072.2] Massive Regex Slowdown#5113
JackStouffer merged 1 commit intodlang:stablefrom
JackStouffer:revert-regex

Conversation

@JackStouffer
Copy link
Contributor

This PR reverts all changes to the regex code from 2.072.2 onwards.

See the discussion here and here.

It's not fair of me to ask for regex development to be frozen until the new CTFE engine is done. However, it's unfair to our users to ask them to deal with a huge performance drop until the new CTFE engine is done.

Regex development can continue in a separate branch, and be merged into master when the CTFE is done.

CC @MartinNowak @DmitryOlshansky

@dlang-bot
Copy link
Contributor

dlang-bot commented Feb 10, 2017

Fix Bugzilla Description
17161 [REG 2.072.2] Massive Regex Slowdown

@JackStouffer JackStouffer force-pushed the revert-regex branch 2 times, most recently from 42f4b70 to 9d8d99a Compare February 10, 2017 14:45
Copy link
Member

@DmitryOlshansky DmitryOlshansky left a comment

Choose a reason for hiding this comment

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

@JackStouffer After giving it some thought I agree that we must revert until after the new CTFE, so LGTM.

@DmitryOlshansky
Copy link
Member

Has some strange test failures on win32.

@JackStouffer
Copy link
Contributor Author

I think I fixed the Windows errors.

One of the Phobos admins needs to merge this because the doc builder is still error-ing.

@JackStouffer
Copy link
Contributor Author

Auto-merge toggled on

@JackStouffer JackStouffer force-pushed the revert-regex branch 2 times, most recently from 076e71b to ee08989 Compare February 12, 2017 17:04
@JackStouffer JackStouffer merged commit c4f4cfe into dlang:stable Feb 12, 2017
@MartinNowak
Copy link
Member

Can you double-check my merge pls? #5122

@DmitryOlshansky
Copy link
Member

Should have been more careful. Now I realize that this rollbacks way too much - we've lost BitNFA that was proudly described on the D blog:
https://dlang.org/blog/2016/11/07/big-performance-improvement-for-std-regex/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants