Commit 40d60a1
ZipArchive: Improve performance or removing extra fields
This improves the performance of the `ZipArchive` by optimizing the removal of extra fields.
- `src/libraries/System.IO.Compression/src/System/IO/Compression/ZipBlocks.cs`: Replaced multiple iterations and list operations with a single `RemoveAll` call to remove specific `ZipGenericExtraField` entries.1 parent 7442e7d commit 40d60a1
File tree
1 file changed
+5
-13
lines changed- src/libraries/System.IO.Compression/src/System/IO/Compression
1 file changed
+5
-13
lines changedLines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | 240 | | |
242 | 241 | | |
243 | | - | |
| 242 | + | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
247 | | - | |
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
| |||
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
| 254 | + | |
256 | 255 | | |
257 | | - | |
258 | 256 | | |
259 | | - | |
260 | | - | |
| 257 | + | |
| 258 | + | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
266 | 264 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 265 | + | |
274 | 266 | | |
275 | 267 | | |
276 | 268 | | |
| |||
0 commit comments