Commit 150da0e
unpack: conditionally use a file mapping to write files
Use a file mapping to write files up to 512KB. The limit where using
a file mapping stops being an advantage varies from machine to
machine. 512KB is a reasonable value to use here, close to the lower
bound, to avoid tar becoming slower in some machines.
PR-URL: #230
Credit: @joaocgreis
Close: #230
Reviewed-by: @isaacs1 parent eea7dd7 commit 150da0e
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
| |||
325 | 333 | | |
326 | 334 | | |
327 | 335 | | |
| 336 | + | |
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
| |||
572 | 581 | | |
573 | 582 | | |
574 | 583 | | |
575 | | - | |
| 584 | + | |
576 | 585 | | |
577 | 586 | | |
578 | 587 | | |
| |||
0 commit comments