Issue1359618
Created on 2005年11月18日 08:00 by loewis, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files |
| File name |
Uploaded |
Description |
Edit |
|
encode2.diff
|
loewis,
2005年11月18日 08:00
|
| Messages (4) |
|
msg49065 - (view) |
Author: Martin v. Löwis (loewis) * (Python committer) |
Date: 2005年11月18日 08:00 |
This patch speeds up the charmap encoder by a factor of 4 to 5, using a
trie structure instead of a dictionary; the speedup primarily comes from
not creating integer objects in the process.
The trie is created by inverting the encoding map; the codec generator is
changed to drop the encoding dictionary, and instead emit a function call
to create the trie.
|
|
msg49066 - (view) |
Author: Jack Diederich (jackdied) * (Python committer) |
Date: 2006年05月25日 22:45 |
Logged In: YES
user_id=591932
Updated the patch as part of NeedForSpeed
(mainly Py_ssize_t changes and some rejected chunks)
Because the previous version on the trunk was
broken I'm not sure what to compare the results against ;)
|
|
msg49067 - (view) |
Author: Marc-Andre Lemburg (lemburg) * (Python committer) |
Date: 2006年05月26日 12:00 |
Logged In: YES
user_id=38388
Hi Martin,
I've only had a quick look at the patch, but it looks nice,
so please check it in.
Don't we also have to regenerate all the codecs once this
patch has been applied ?! If so, I can take care of that
using Makefile approach in Tools/unicode/. Please let me know.
Thanks.
|
|
msg49068 - (view) |
Author: Martin v. Löwis (loewis) * (Python committer) |
Date: 2006年06月04日 19:37 |
Logged In: YES
user_id=21627
Thanks for all comments and reviews; I have now committed
the patch as r46648. This includes a regeneration of the
individual codecs.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2022年04月11日 14:56:14 | admin | set | github: 42606 |
| 2005年11月18日 08:00:17 | loewis | create |