Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Optimize Regex.match() to indexOf() - #298

Open
curtisz wants to merge 1 commit into
fzaninotto:masterfrom
curtisz:eliminate_regex
Open

Optimize Regex.match() to indexOf()#298
curtisz wants to merge 1 commit into
fzaninotto:masterfrom
curtisz:eliminate_regex

Conversation

@curtisz

@curtisz curtisz commented Feb 3, 2015

Copy link
Copy Markdown

Simple change to optimize returned status code handler. With huge number of hosts, regex creates bottleneck. Changing Regex.match() to indexOf() reduces load.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant