Skip to content

Refactoring and optimizations #63

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

Merged
merged 1 commit into from
Apr 2, 2022
Merged

Refactoring and optimizations #63

merged 1 commit into from
Apr 2, 2022

Conversation

KeterSCP
Copy link
Contributor

@KeterSCP KeterSCP commented Apr 2, 2022

In this PR usages of ArrayPool were replaced by stackallocs. In order to avoid StackOverflowException if requested buffer is too large, we will fallback to simple arrays.

Having the same memory allocations we gain 5-20% speed improvements.

Base:
base

PR:
pr

@manigandham manigandham self-assigned this Apr 2, 2022
@manigandham
Copy link
Collaborator

Thanks @KeterSCP, this looks good. Please hold off on anymore changes for now. I think the performance is fine at this point and I want to get the latest changes released.

@manigandham manigandham merged commit 4f017cf into ullmark:master Apr 2, 2022
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