This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年06月11日 13:10 by Indy, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| tokenize.py.patch | Indy, 2008年06月11日 13:10 | The patch in "diff -urN" format. | ||
| Messages (3) | |||
|---|---|---|---|
| msg67965 - (view) | Author: Aristotelis Mikropoulos (Indy) | Date: 2008年06月11日 13:10 | |
Various tokenize.py performance boosts and code clarifications. |
|||
| msg68320 - (view) | Author: Aristotelis Mikropoulos (Indy) | Date: 2008年06月17日 13:07 | |
So, will this patch be applied? |
|||
| msg68325 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2008年06月17日 13:56 | |
Sorry, I don't see any value in this kind of patch.
The line "contline = += line" is broken. The "+=" transformations and
else-clause eliminations trivially re-arrange code without any real
savings. The "while 1" to "while True" transformation should not be
done in Py2.x because the latter is much slower ("while True" requires
loading a global variable and a test; in contrast, "while 1" is
optimized to an unconditional jump.
|
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:35 | admin | set | github: 47328 |
| 2008年06月17日 13:56:34 | rhettinger | set | status: open -> closed resolution: rejected messages: + msg68325 nosy: + rhettinger |
| 2008年06月17日 13:07:36 | Indy | set | messages: + msg68320 |
| 2008年06月11日 13:10:45 | Indy | create | |