#397: Replace singletons with @functools.lru_cache() decorator
- Replace
BlockchainParams()
singleton with@functools.lru_cache()
- Replace
HeadBlock()
singleton with@functools.lru_cache()
- Replace
UDValue()
singleton with@functools.lru_cache()
- Replace
CurrencySymbol()
singleton with@functools.lru_cache()
- Replace
ClientInstance()
singleton with@functools.lru_cache()
Close #397 (closed).
Edited by Moul
Merge request reports
Activity
Filter activity
changed milestone to %0.11.0
added Network label
requested review from @moul
assigned to @moul
added 3 commits
- de52c120 - [mod] #397 (closed): Get rid of CurrencySymbol() singleton
- 3ac2e624 - [mod] #397 (closed): Get rid of HeadBlock() singleton
- e3e46a29 - [mod] #397 (closed): Get rid of UDValue singleton
changed title from #397 (closed): Get rid of singletons to #397 (closed): Replace singletons with @functools.lru_cache() decorator
added 5 commits
- 32cf9988 - [mod] #397 (closed): Replace BlockchainParams() singleton with @functools.lru_cache()
- 6b1dc44f - [mod] #397 (closed): Replace HeadBlock() singleton with @functools.lru_cache()
- 5f3ada62 - [mod] #397 (closed): Replace CurrencySymbol() singleton with @functools.lru_cache()
- 68de8cc5 - [mod] #397 (closed): Replace UDValue() singleton with @functools.lru_cache()
- f09837a9 - [enh] #397 (closed): Replace ClientInstance() singleton with @functools.lru_cache()
Toggle commit list
Please register or sign in to reply