Skip to content

perf(npm): less syscalls in tarball extraction#32541

Merged
dsherret merged 3 commits intodenoland:mainfrom
dsherret:perf_npm_tarball_extraction_less_sys_calls
Mar 7, 2026
Merged

perf(npm): less syscalls in tarball extraction#32541
dsherret merged 3 commits intodenoland:mainfrom
dsherret:perf_npm_tarball_extraction_less_sys_calls

Conversation

@dsherret
Copy link
Copy Markdown
Contributor

@dsherret dsherret commented Mar 6, 2026

I'm too lazy to recompile main, but it's about 10% faster.

archive.set_overwrite(true);
archive.set_preserve_permissions(true);
let mut created_dirs = HashSet::new();
let mut absolute_path = output_folder.to_path_buf();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also reuses this buffer when iterating.

@dsherret dsherret merged commit e219207 into denoland:main Mar 7, 2026
112 checks passed
@dsherret dsherret deleted the perf_npm_tarball_extraction_less_sys_calls branch March 7, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants