-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Optimize arrayUnique #6871
Optimize arrayUnique #6871
Conversation
|
Changed to |
i dont see why that would be the case. Set must do this test internally in all cases either way. calling has() as a precondition to add() is never necessary or beneficial (i think). |
You are probably right when talking about |
Doing the |
Using spread instead of |
uPlot (time: linear / data)
arrayUnique
70ms -> 15ms