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

Reduce state transition allocations #65

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Reduce state transition allocations #65

merged 1 commit into from
Aug 25, 2023

Conversation

qmuntal
Copy link
Owner

@qmuntal qmuntal commented Aug 24, 2023

The current implementation of stateRepresentation.findHandler is overcomplicated and allocates too much.

This PR simplifies it, making it more performant, both in terms of memory allocations and complexity.

Fixes #64

@qmuntal
Copy link
Owner Author

qmuntal commented Aug 24, 2023

@k-raval can you check if these changes improves your performance issues with stateRepresentation.findHandler?

@k-raval
Copy link

k-raval commented Aug 25, 2023

Thanks @qmuntal , your fix is working as expected. Performance in terms of number of object allocations have come down.

@qmuntal qmuntal merged commit 23039c6 into master Aug 25, 2023
14 checks passed
@qmuntal qmuntal deleted the reduceallocs branch August 25, 2023 12:40
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.

Optimizing findHandler
2 participants