Commit 2b2d607
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 <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Shantanu <[email protected]>
1 parent 616468b commit 2b2d607
File tree
2 files changed
+19
-8
lines changed- Lib
- Misc/NEWS.d/next/Library
2 files changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1760 | 1760 | | |
1761 | 1761 | | |
1762 | 1762 | | |
| 1763 | + | |
| 1764 | + | |
1763 | 1765 | | |
1764 | 1766 | | |
1765 | 1767 | | |
| |||
2138 | 2140 | | |
2139 | 2141 | | |
2140 | 2142 | | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2141 | 2146 | | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
2146 | 2153 | | |
2147 | | - | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2151 | 2160 | | |
2152 | 2161 | | |
2153 | 2162 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments