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

chore: avoid recalculating lengths in some for-loops #553

Merged

Conversation

aleattene
Copy link
Contributor

To improve performance, I fixed some for-loops where the length was recalculated at each iteration, instead of calculating it just once before the loop itself.
Reviewer: @micheleriva

Copy link

vercel bot commented Nov 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orama-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2023 10:15pm

Copy link
Member

@micheleriva micheleriva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@micheleriva micheleriva merged commit 5e43932 into askorama:main Nov 20, 2023
3 checks passed
@aleattene aleattene deleted the chore/avoid-recalculating-for-loops branch November 20, 2023 09:20
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.

None yet

2 participants