Skip to content

Conversation

@pgovind
Copy link

@pgovind pgovind commented Apr 26, 2021

Adding some benchmarks so we know the numbers before and after dotnet/runtime#51508 (and other optimizations that will come along shortly)

Apparently I can't tag reviewers in this repo. cc @adamsitnik @danmoseley @tannergooding

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @pgovind !

}

[Benchmark] public void Backtracking() => _notOneLoopNodeBacktracking.Match("Essential services are provided by regular exprs.");
[Benchmark] public void OneNodeBacktracking() => _oneNodeBacktracking.Match("This regex has the potential to be optimized further");
Copy link
Member

Choose a reason for hiding this comment

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

"This regex has the potential to be optimized further"

:D

Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

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

+1 for adding a benchmark before committing the improvement 🙂

@billwert billwert merged commit 05a889f into dotnet:main Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants