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年02月10日 11:44 by lars.gustaebel, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| tarfile-memory.diff | lars.gustaebel, 2008年02月10日 11:43 | |||
| Messages (2) | |||
|---|---|---|---|
| msg62248 - (view) | Author: Lars Gustäbel (lars.gustaebel) * (Python committer) | Date: 2008年02月10日 11:43 | |
tarfile.py wastes lots of memory resources. The memory consumption does not depend on the size of an archive but on the numbers of members in it. The attached patch reduces memory usage by about 60% and consists of two independent strategies (each with about 30% reduction): 1. Add __slots__ to the TarInfo class. This was proposed in issue1540385 a while ago but rejected due to backward-compatibility issues. 2. Remove the undocumented buf attribute of the TarInfo class. buf stores the original 512-byte header block read from the archive. This was introduced in r45954 and is rather useless except for GNUTYPE_SPARSE processing. This might as well be a candidate for backporting to 2.6. |
|||
| msg65462 - (view) | Author: Lars Gustäbel (lars.gustaebel) * (Python committer) | Date: 2008年04月14日 10:08 | |
Checked into the py3k branch as r62337. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:30 | admin | set | github: 46334 |
| 2008年04月14日 10:08:23 | lars.gustaebel | set | status: open -> closed resolution: accepted messages: + msg65462 |
| 2008年02月10日 11:44:02 | lars.gustaebel | create | |