![]() ![]() I think it's possible to shave off another 10 ms or so but more than that will be difficult. Note that the first prompt is complete, unlike with some other themes that will give you just the current directory and then repaint prompt asynchronously when extra data becomes available. This time includes starting zsh, sourcing ~/p10k.zsh, loading the theme and rendering the first prompt. Now p10k loads in 37 ms on my machine (6x improvement). I had to disable some optimizations for zsh < 5.4 due to bugs in quoting that I don't want to write workarounds for. I've fixed bugs in my previous implementation and rolled it forward. ![]() This is a lot more annoying than watching slow sections load (as long as they are asynchronous and not blocking my typing), so if I had to choose, I'd rather have slower async sections but faster startup. To me personally it's very important to get startup time to a minimum, I launch new terminal windows all the time and it feels annoying when I can notice the "loading". I'm on Arch Linux using kitty terminal, zsh 5.7.1. At this point I dont have a powerlevel configuration I like (so we can start with some default and use it as an example). I'm happy to assist with whatever I can, running experiments, performing benchmarks (how?), etc. So maybe to start the discussion with something, have you heard a similar feedback before? Do you have any idea what might be the cause? Have you specifically attempted to optimize the startup time, or it hasn't been your focus so far? To clarify, by startup I mean the period of time between when I launch a new terminal instance and when the prompt is rendered so I can start typing my commands. I can't give you any numbers, and to be honest I didn't dig deeply into powerlevel configuration to see what can be optimized (I only tried to disable a bunch of segments to no avail), but I did ask a friend for his perception (who I know also uses my async fork) and he confirms that the startup feels slower. ![]() While the experience in general feels smooth, I noticed that the startup time is noticeably slower than what I'm used to with my async version of spaceship. I'm very interested to give this prompt a try, so I installed it using antigen and followed the initial wizard to configure the prompt. Hey have sparkled my interest in spaceship-prompt/spaceship-prompt#734, so first of all thanks for that □ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |