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

Regexp with i modifier is slow #258

Merged
merged 3 commits into from Feb 4, 2018
Merged

Conversation

azumakuniyuki
Copy link
Member

  • Remove /i modifiler from each regular expression as possible
  • lc($v) before passing string to Sisimai::Reason::*::match() method

@coveralls
Copy link

coveralls commented Feb 4, 2018

Coverage Status

Coverage increased (+0.03%) to 95.296% when pulling f387d27 on regexp-with-i-modifier-is-slow into d256815 on master.

@azumakuniyuki azumakuniyuki merged commit 2b6578c into master Feb 4, 2018
azumakuniyuki added a commit to sisimai/rb-sisimai that referenced this pull request Feb 5, 2018
azumakuniyuki added a commit that referenced this pull request Feb 5, 2018
azumakuniyuki added a commit that referenced this pull request Feb 5, 2018
@azumakuniyuki azumakuniyuki deleted the regexp-with-i-modifier-is-slow branch July 20, 2018 06:54
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.

None yet

2 participants