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 2012年06月28日 21:19 by r.david.murray, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| feedparser_performance.patch | r.david.murray, 2012年06月28日 21:19 | |||
| Messages (4) | |||
|---|---|---|---|
| msg164295 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年06月28日 21:19 | |
The idea for the attached patch comes from the QNX development team. In their measurements, replacing the re.split-plus-line-reassembly code in BufferedSubFile with str.splitlines provided a 30% reduction in email parsing time. The code is also a lot more readable, which is a plus. The patch is simple enough, and the improvement is large enough, that I'd like to apply this to all active branches. |
|||
| msg164306 - (view) | Author: Jesús Cea Avión (jcea) * (Python committer) | Date: 2012年06月29日 00:11 | |
This is a performance enhancement. Out of question for 3.2. Python 3.3 is in beta now, and this would be considered a new feature, but I think it is pretty safe to apply. I am +1 to applying it. Personally I would apply it to 2.7 too, but current official position is "bug fixes only". We have rejected performance improvements for 2.7 in the past, for this reason. |
|||
| msg164330 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年06月29日 14:41 | |
Realistically, any performance improvement is 3.4-only now. |
|||
| msg182071 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年02月14日 03:21 | |
New changeset 0f827775f7b7 by R David Murray in branch 'default': #15220: simplify and speed up feedparser's line splitting. http://hg.python.org/cpython/rev/0f827775f7b7 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:32 | admin | set | github: 59425 |
| 2013年02月14日 03:21:04 | python-dev | set | nosy:
+ python-dev messages: + msg182071 |
| 2013年02月14日 02:17:33 | r.david.murray | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2012年06月29日 14:41:35 | pitrou | set | nosy:
+ pitrou messages: + msg164330 versions: + Python 3.4, - Python 2.7, Python 3.3 |
| 2012年06月29日 00:11:24 | jcea | set | nosy:
+ jcea messages: + msg164306 versions: - Python 3.2 |
| 2012年06月28日 21:19:23 | r.david.murray | create | |