-
Notifications
You must be signed in to change notification settings - Fork 16
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
Handle search maxlength on the backend as well #32
Comments
Very long strings are not a huge issue here, it just does a lookup in an ETS table. But what is "funny" behavior? If it's breaking the app in some way it would be really useful to know! |
It also computes jaro distance to all package names, right? This is the "slowest" part if I had to guess |
@michallepicki yeah that could be it, I'll experiment a bit. I noticed it actually gets a little bit sluggish even at the 30th character on my laptop. |
maxlength is removed on the frontend so it's no longer needed on the backend :). |
Text input's
maxlength
attribute is supported on most browsers but on most Android browsers, the additional characters get removed after input focus is lost (see https://caniuse.com/#search=maxleng ). This leads to "funny" behavior when typing very long strings, but really this is just a too-easy way to put unnecessarily load onto the server.The text was updated successfully, but these errors were encountered: