Message216974
This updated patch has support for starting in fast mode until the next count would result in overflow in Py_ssize_t. The first patch started in slow mode as soon as any of 'start', 'stop', or 'step' was outside of the range. With this patch, we start in fast mode if possible and then transition to slow mode when needed.
I also tested this patch for correctness for the following cases:
- starting in slow mode,
- transition from fast -> slow,
- pickle/unpickle
I did this by temporarily changing the code twice:
- to always use fast mode, and
- pretending that overflow occurs at value 5 instead of PY_SSIZE_T_MAX. |
|
Date |
User |
Action |
Args |
2014-04-21 23:11:25 | AlokSinghal | set | recipients:
+ AlokSinghal, rhettinger, terry.reedy, thomasguest |
2014-04-21 23:11:25 | AlokSinghal | set | messageid: <1398121885.88.0.261982541663.issue6305@psf.upfronthosting.co.za> |
2014-04-21 23:11:25 | AlokSinghal | link | issue6305 messages |
2014-04-21 23:11:25 | AlokSinghal | create | |
|