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

Benchmarks + SlugHelperImproved #15

Merged
merged 3 commits into from
Aug 17, 2020
Merged

Benchmarks + SlugHelperImproved #15

merged 3 commits into from
Aug 17, 2020

Conversation

ctolkien
Copy link
Owner

No description provided.

ctolkien and others added 3 commits April 30, 2020 16:22
* Fix whitespace cleaning tests

* Add test for double replace

* Create a new helper each time

* Use a dictionary for caching denied character regexes

* Cache the default config

* Whitespace and usings cleanup

* Lazily cache the cleanup regex

* Trim and lowercase string without allocating

* Collapse whitespace without allocating

* Apply string replacements without allocating

* Remove bad test

* Add more coverage for string replacements

* Fix string replacement bugs

* Replace RemoveDiacritics with a non-allocating version

* Add test for whitespace in a string replacement from @Buildstarted

* Don't use regexes for denied characters by default

* Update tests for allowed characters

* Add test for legacy behaviour

* Dont regress legacy benchmarks

* Process allowed characters

* Collapse dashes without allocating

* Cache IsWhitespace
@ctolkien ctolkien merged commit 01004f1 into master Aug 17, 2020
@ctolkien ctolkien deleted the benchmarks-wip branch November 26, 2020 23:04
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.

2 participants