diff options
| author | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-02-14 07:49:25 (GMT) |
|---|---|---|
| committer | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-02-14 07:49:25 (GMT) |
| commit | 339f5e3ffc4d1005020ffc2fc85fcc618c7461fa (patch) | |
| tree | 8b8b870c2217513f3209fe6ad202a034b9ae4726 /Python/sysmodule.c | |
| parent | 1c214d6c942df3fc7af548f7c7e10961dcaba3ee (diff) | |
| download | cpython-339f5e3ffc4d1005020ffc2fc85fcc618c7461fa.zip cpython-339f5e3ffc4d1005020ffc2fc85fcc618c7461fa.tar.gz cpython-339f5e3ffc4d1005020ffc2fc85fcc618c7461fa.tar.bz2 | |
Change simple instances (in Fraction) of self.numerator and self.denominator to
self._numerator and self._denominator. This speeds abs() up from 12.2us to
10.8us and trunc() from 2.07us to 1.11us. This doesn't change _add and friends
because they're more complicated.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions
