-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Remove the compare function from utils #4315
Conversation
and change the one use of it to just intantiate a collator and use it. This was marked as internal module so this shouldn't be a breaking change. Of course, react-sdk was using it. Requires: matrix-org/matrix-react-sdk#12782
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The singular collator choice was done to fix a performance issue, please prove that this does not regress that via some performance test comparisons
See f708c47
otherwise we aren't testing anything different
New test passes in somewhere around 80ms on my machine, same as with the old code, so instantiating another collator for each sort operation doesn't appear to materially affect things. |
@dbkr worth testing in browsers, given that is where the performance issue was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
Tested on my big(ish) test account - no measurable difference between develop and this PR. |
and change the one use of it to just intantiate a collator and use it.
This was marked as internal module so this shouldn't be a breaking change. Of course, react-sdk was using it.
Requires: matrix-org/matrix-react-sdk#12782
Checklist
public
/exported
symbols have accurate TSDoc documentation.