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

Feat memoize #122

Merged
merged 3 commits into from
Feb 7, 2023
Merged

Feat memoize #122

merged 3 commits into from
Feb 7, 2023

Conversation

Primetalk
Copy link
Owner

fix #121

It's a simple map that remembers the function values.
It's thread safe, not super performant.
Use with care, as the map is never cleared.
@Primetalk Primetalk self-assigned this Feb 7, 2023
@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Base: 84.08% // Head: 84.54% // Increases project coverage by +0.45% 🎉

Coverage data is based on head (4948aab) compared to base (9520808).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
+ Coverage   84.08%   84.54%   +0.45%     
==========================================
  Files          42       44       +2     
  Lines        1923     1947      +24     
==========================================
+ Hits         1617     1646      +29     
+ Misses        267      262       -5     
  Partials       39       39              
Impacted Files Coverage Δ
io/io.go 81.76% <ø> (+2.49%) ⬆️
stream/backpressure_channels.go 89.60% <ø> (ø)
fun/memoize.go 100.00% <100.00%> (ø)
io/goresult.go 52.94% <100.00%> (+52.94%) ⬆️
io/memoize.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Primetalk Primetalk merged commit 229cfb3 into master Feb 7, 2023
@Primetalk Primetalk deleted the feat-memoize branch February 7, 2023 18:23
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.

Add io.Memoize
1 participant