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 allocations when applying operators #48

Merged
merged 2 commits into from
May 17, 2024

Conversation

dirkschumacher
Copy link
Contributor

This reduces some allocations when applying operators:

  • solveInformation.solveOperators is now reused which implies that any listener needs to make copies of the data if they want to retain them. I believe this is reasonable. What are your thoughts?
  • s.SolveOperators() creates a new slice every time the operators are ranged over. This is not necessary IMHO.

@dirkschumacher dirkschumacher force-pushed the ds/perf/fewer-alloc-2 branch 2 times, most recently from 2b08ba3 to 279d001 Compare May 16, 2024 21:18
@dirkschumacher dirkschumacher force-pushed the ds/perf/fewer-alloc-2 branch from 279d001 to e611b0c Compare May 16, 2024 22:06
@dirkschumacher dirkschumacher merged commit c06849f into develop May 17, 2024
7 checks passed
@dirkschumacher dirkschumacher deleted the ds/perf/fewer-alloc-2 branch May 17, 2024 12:57
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