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

refactor: improvment of the contains method #130

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

MukjepScarlet
Copy link
Contributor

ArrayList -> LinkedHashSet

This contains check spends too long in my test. It would be better to use Set instead of List.

@RaphiMC RaphiMC merged commit 259407a into RaphiMC:main Nov 9, 2024
1 check passed
@RaphiMC
Copy link
Owner

RaphiMC commented Nov 9, 2024

Thats indeed a pretty good performance improvement. Thanks

@MukjepScarlet MukjepScarlet deleted the patch-1 branch November 9, 2024 11:47
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