dadhi / dadhi/ImTools

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

Open
#58 0 comments 0 reactions 1 assignee Claimed by @dadhi View on GitHub
enhancement performance
Dominant language
C#
Stars
251
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.