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

perf: refactor parts of StreamSearch #148

Merged
merged 17 commits into from
Mar 16, 2024
Merged

Conversation

gurgunday
Copy link
Member

@gurgunday gurgunday commented Mar 10, 2024

Goal: Modernize and improve this library as much possible starting with StreamSearch

Small improvements:

a4e91c5 — when we match, no need to calculate the pos again, let's just directly assign and check
c281add — unnecessary allocation
ca4602d — unnecessary subtraction

@gurgunday gurgunday marked this pull request as draft March 10, 2024 12:23
@gurgunday
Copy link
Member Author

@Uzlopak should I separate the code changes that are attached in the description from the class refactor?

@gurgunday gurgunday marked this pull request as ready for review March 15, 2024 15:06
@gurgunday gurgunday requested a review from Uzlopak March 15, 2024 15:06
@gurgunday gurgunday changed the title perf: refactor already-optimized StreamSearch perf: refactor and modernize StreamSearch Mar 15, 2024
@gurgunday gurgunday marked this pull request as draft March 16, 2024 14:36
@gurgunday
Copy link
Member Author

I will separate the changes in different PRs

@gurgunday gurgunday marked this pull request as ready for review March 16, 2024 20:39
@gurgunday gurgunday changed the title perf: refactor and modernize StreamSearch perf: refactor parts of StreamSearch Mar 16, 2024
@gurgunday gurgunday requested a review from a team March 16, 2024 20:45
@gurgunday
Copy link
Member Author

This is a minor change, so that the bigger refactor doesn't introduce any other changes

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

Makes sense

@gurgunday gurgunday merged commit 0740e48 into fastify:master Mar 16, 2024
20 checks passed
@gurgunday gurgunday deleted the sunday branch March 16, 2024 21:59
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