Closed dagolden closed 9 years ago
This commit improves optimization for the case where add_minimum gets a version object that stringifies to "0".
It also optimizes the _version_object method to avoid expensive magic checks for "0" or version objects.
Some comments were added to clarify why things are optimized the way they are.
@rjbs, I'd appreciate a third set of eyes before I merge this. (@leont already approves)
:+1:
This commit improves optimization for the case where add_minimum gets a version object that stringifies to "0".
It also optimizes the _version_object method to avoid expensive magic checks for "0" or version objects.
Some comments were added to clarify why things are optimized the way they are.