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
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.
Revision history for this message
Thomas Herve (therve) wrote :

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.

260. By Benjamin Kampmann

comment and documentation

261. By Benjamin Kampmann

better way to ensure that the variable size is different from the default one

Revision history for this message
James Henstridge (jamesh) wrote :

Looks pretty good, but there are a few white-space issues that should be fixed. As per PEP-8, there should be two blank lines between top level functions/classes/etc. In storm/store.py you seem to have three blank lines, and in tests/store/base.py you have a single blank line.

review: Approve
262. By Benjamin Kampmann <email address hidden>

blank lines

Revision history for this message
Benjamin Kampmann (lightyear) wrote :

Changes done and pushed

Revision history for this message
Jamu Kakar (jkakar) wrote :

Look great, thanks! I'll clean up a couple of minor whitespace
issues and merge the branch for you.

review: Approve

Subscribers

People subscribed via source and target branches

to status/vote changes: