On 01/23/12 14:19, Shawn Walker wrote:
On 01/20/12 18:28, Brock Pytlik wrote:
Webrev:
https://cr.opensolaris.org/action/browse/pkg/bpytlik/19147-v1
Bug:
19147 conflicting action checks can be faster if the image is known to
be good
This is another performance improvement.
Do these changes impact memory usage at all? (Guessing not.)
1% improvement for planning an update.
src/modules/client/image.py:
line 3438: Can you add a comment above this noting what the data
structure is used for and describing the structure of what's stored in
it?
Sure.
line 3482: why no timestamp for this file? if it doesn't need one,
then the comment above is misleading.
It doesn't need one, and I've added a comment to indicate why.
line 3485, 3497: cur_key_acts doesn't appear to be used
Oops, vestigial code from an earlier attempt.
line 3648: why not return set((l.rstrip() for l in fh)) instead of
return tmp? At the least, s/= /= /. Also, you don't need the
parentheses around the generator inside of set().
Bleh, forgot to remove my debugging code. Thanks for catching that.
src/modules/client/imageplan.py:
lines 1690, 1768: Might want to add a comment stating that .keys()
is used for iteration on the dicts to allow del during iteration.
Sure
line 1774: maybe rename this to __check_new_conflicts to make it
more obvious that it's only checking for new action conflicts?
__check_new_conflicts doesn't really describe what it's doing. I'm going
to leave it as __fast_check for now (as we agreed when we chatted offline).
Thanks for taking a look,
Brock
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss