diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-11-04 05:00:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 17:30:12 +0530 |
commit | 0b75a7169b2e123cac04e7ffcaf16a28eb356fd0 (patch) | |
tree | 117c69975e5942ae4deb462d1d3c1a0790b78c3c /cli/main.rs | |
parent | 8acf059ac683ff13c6973914c57caa0ef07d6d9a (diff) |
perf: lazy `atexit` setup (#21053)
`libc::atexit` incurrs 2% dyld cost at startup on macOS. This PR moves
the setup to when the tty mode is changed using op_stdin_set_raw.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index c6249a21f..80fe59005 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -323,7 +323,6 @@ pub(crate) fn unstable_warn_cb(feature: &str) { pub fn main() { setup_panic_hook(); - util::unix::prepare_stdio(); util::unix::raise_fd_limit(); util::windows::ensure_stdio_open(); #[cfg(windows)] |