Merge lp:~lightyear/storm/variable_cache_size into lp:storm
Proposed by
Thomas Herve
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jamu Kakar | ||||
Approved revision: | 262 | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~lightyear/storm/variable_cache_size | ||||
Merge into: | lp:storm | ||||
To merge this branch: | bzr merge lp:~lightyear/storm/variable_cache_size | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jamu Kakar (community) | Approve | ||
James Henstridge | Approve | ||
Review via email: mp+1284@code.launchpad.net |
To post a comment you must log in.
There are some small things to fix in the branch:
[1]
+"""
+The number of objects the cache should have per default.
+"""
+DEFAULT_CACHE_SIZE = 100
The documentation here is useless, a simple python comment would be better
[2]
+ @keyword cache_size: the amount of objects the internal cache should
+ keep alive
Please use @param here, @keyword is for something different. Also, the description should probably say "the maximum amount of objects".
[3]
+ assert variable_size != DEFAULT_CACHE_SIZE
This assert looks useless. If you want to keep it, use assertNotEquals.
Thanks, and sorry for not looking at that sooner.