Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What exactly do you need 1ms instead of 14ms startup time in a shell startup? The difference is barely perceptible.

Most of the time starting up is time spent seartching the filesystem for thousands of packages.





> What exactly do you need 1ms instead of 14ms startup time in a shell startup?

I think as they said: when dynamically building a shell input prompt it starts to become very noticable if you have like 3 or more of these and you use the terminal a lot.


Ah, I only noticed the "shell startup" bit.

Yes, after 2-3 I agree you'd start to notice if you were really fast. I suppose at that point I'd just have Gemini rewrite the prompt-building commands in Rust (it's quite good at that) or merge all the prompt-building commands into a single one (to amortize the startup cost).


https://starship.rs/ perhaps? I should probably start using it again honestly.

it feels good to have all that information at your fingertips but most of the time the default config is way too noisy.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: