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: Pass element to resolveAllShortUrl function, not text selector #9988

Merged

Conversation

davidtaylorhq
Copy link
Member

We already have a reference to the preview element, so there is no need to look it up again. This saves about 1ms per keypress in my testing.

We already have a reference to the preview element, so there is no need to look it up again. This saves about 1ms per keypress in my testing.
@davidtaylorhq davidtaylorhq merged commit be59747 into discourse:master Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant