Categories: None [Edit]

dirty-memoize

https://rubygems.org/gems/dirty-memoize
https://github.com/clbustos/dirty-memoize
Like Memoize, but designed for mutable and parametizable objects Use when: 1. You have one expensive method (\compute) which set many internal variables. So, is preferable lazy evaluation of these dependent variables. 2. The expensive operation depends on one or more parameters 3. Changes on one or more parameters affect all dependent variables 4. You may want to hide the call of 'compute' operation 5. The user could want test several different parameters values

Total

Ranking: 6,380 of 183,107
Downloads: 631,308

Daily

Ranking: 9,841 of 183,092
Downloads: 89

Depended by

RankDownloadsName
6,205673,430statsample
121,4674,877statsample-sem
157,6782,963statsample-ekatena

Depends on

RankDownloadsName
25817,849,894rspec
2,0868,574,300hoe

Owners

#GravatarHandle
1iconclbustos