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

Add to the ImHashMap ref state arguments to be propagated into the Update delegates #58

Open
dadhi opened this issue Jan 6, 2024 · 0 comments
Assignees
Milestone

Comments

@dadhi
Copy link
Owner

dadhi commented Jan 6, 2024

Pros:

  • The idea is that we pass the struct state deep into the stack when updating (other ops) on Map
  • We may get the result back using this stack, like the old value, some calculated value, etc.
  • Encourage the passing state, by enabling more scenarios where you can pass it, and avoid memory allocation and performance hit introducing closure in delegate.
  • Have the fewer overloads because passing the struct parameter by ref enables to combine multiple state items into one without hurting performance.
@dadhi dadhi self-assigned this Jan 6, 2024
@dadhi dadhi added this to the v5.0.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant