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

perf(oauth2) remove needless use of regex for artificial endpoints #2806

Merged
merged 1 commit into from
Aug 18, 2017

Conversation

p0pr0ck5
Copy link
Contributor

Summary

We can use a more performant JITable string find to search for the exposed endpoints, based on the given logic. Doing so avoids the PCRE overhead and saves expression cache space in the VM.

Full changelog

  • Use string_find instead of ngx.re.find for artificial endpoint search

We can use a more performant JITable string find to search for the
exposed endpoints, based on the given logic. Doing so avoids the
PCRE overhead and saves expression cache space in the VM.
Copy link
Member

@thibaultcha thibaultcha left a comment

Choose a reason for hiding this comment

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

LGTM, but let's hold this until 0.11.0!

@thibaultcha thibaultcha added the pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) label Aug 14, 2017
@p0pr0ck5 p0pr0ck5 merged commit 0742c34 into master Aug 18, 2017
@p0pr0ck5 p0pr0ck5 deleted the perf/oauth2-endpoint branch August 18, 2017 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants