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

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

siimsams
Copy link
Contributor

@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.

@nolimits4web nolimits4web merged commit e5ad9fd into nolimits4web:master Jan 2, 2025
@nolimits4web
Copy link
Owner

Looks good, thank you! Merged

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