Skip to content

[std.regex] Use ref-counting for Captures struct #4142

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

Merged
merged 1 commit into from
Apr 26, 2016

Conversation

DmitryOlshansky
Copy link
Member

Should improve cases where a lot of temporary captures allocated with big number of submatches.

@JackStouffer
Copy link
Member

Benchmark?

@DmitryOlshansky
Copy link
Member Author

Benchmark?

Need to create one for this I guess.

@9il 9il added the std.regex label Apr 7, 2016
@9il
Copy link
Member

9il commented Apr 16, 2016

rebase please

@DmitryOlshansky
Copy link
Member Author

DmitryOlshansky commented Apr 16, 2016

Benchmark?

Doesn't show any difference on things I tried. This pull however unties matching from GC usage so we may have @nogc matching one day.

@9il
Copy link
Member

9il commented Apr 26, 2016

Auto-merge toggled on

@9il 9il merged commit 46ca5da into dlang:master Apr 26, 2016
@schuetzm
Copy link
Contributor

It seems this introduced a regression:
https://issues.dlang.org/show_bug.cgi?id=16698

@9il
Copy link
Member

9il commented Nov 17, 2016

Ping @DmitryOlshansky

@DmitryOlshansky
Copy link
Member Author

I'm on it

@quickfur
Copy link
Member

Apparently it's caused by interaction with a compiler bug: issue 16699.

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.

5 participants