diff options
author | Johan Förberg <johan@forberg.se> | 2024-10-30 22:08:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 22:08:30 (GMT) |
commit | 2b2d607095335024e5e2bb358e3ef37650536839 (patch) | |
tree | 5ba62564ad109b7c3eaab265e15f6e2a6a57ddca /Lib/html | |
parent | 616468b87bc5bcf5a4db688637ef748e1243db8a (diff) | |
download | cpython-2b2d607095335024e5e2bb358e3ef37650536839.zip cpython-2b2d607095335024e5e2bb358e3ef37650536839.tar.gz cpython-2b2d607095335024e5e2bb358e3ef37650536839.tar.bz2 |
gh-121267: Improve performance of tarfile (#121267) (#121269)
Tarfile in the default write mode spends much of its time resolving UIDs
into usernames and GIDs into group names. By caching these mappings, a
significant speedup can be achieved.
In my simple benchmark[1], this extra caching speeds up tarfile by 8x.
[1] https://gist.github.com/jforberg/86af759c796199740c31547ae828aef2
---------
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Lib/html')
0 files changed, 0 insertions, 0 deletions