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

fix: use find where possible instead of filter #7815

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

siimsams
Copy link

@siimsams siimsams commented Dec 4, 2024

I love swiper! This project is super fast. I'm using this in a calendar project which has multiple swipers on one page. I'm facing some performance issues on slow mobile phones and I'm trying to figure out ways to help out and make this library even more performant.

I found this previous similar PR which was not merged. I guess it had too many changes. I tried to keep this small and concise as possible so it's easy to see what changed.

I think swapping filter out for find should bring some performance gains and is quite safe thing to do.

I will keep looking for ways to increase performance of this awesome project.

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.

1 participant