Message236239
It seems like performance is drastically improved by doing this:
class Category(Enum):
tiny = 1
medium = 2
large = 3
tiny = Category.tiny
medium = Category.medium
In other words, resolving Category.tiny and Category.medium is what's slow. The comparison itself is very fast. |
|
Date |
User |
Action |
Args |
2015-02-19 22:35:38 | craigh | set | recipients:
+ craigh, ethan.furman |
2015-02-19 22:35:38 | craigh | set | messageid: <1424385338.96.0.354321261757.issue23486@psf.upfronthosting.co.za> |
2015-02-19 22:35:38 | craigh | link | issue23486 messages |
2015-02-19 22:35:38 | craigh | create | |
|