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

Do not require did_you_mean #640

Merged
merged 1 commit into from
Nov 15, 2018
Merged

Do not require did_you_mean #640

merged 1 commit into from
Nov 15, 2018

Conversation

quixoten
Copy link
Contributor

This caused a drastic performance hit (100x slower) on our JRuby applications because it was requiring did_you_mean even though we have:

JRUBY_OPTS="--disable:did_you_mean"

set. In looking through other libraries that use did_you_mean, it looks like a fairly common pattern is to just check if the portions of did_you_mean that are needed are defined. I tried to replicate that in this patch.

This caused a drastic performance hit (100x slower) on our JRuby applications because it was requiring `did_you_mean` even though we have:

```
JRUBY_OPTS="--disable:did_you_mean"
```

set. In looking through other libraries that use `did_you_mean`, it looks like a fairly common pattern is to just check if the portions of `did_you_mean` that are needed are defined. I tried to replicate that in this patch.
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