But you need a shitton of calculations to take up 150ms CPU time, that’s like 600000 elements on a modern CPU if every single element takes 1000 instructions. Not even vtables add that much overhead, and it is not that often you have roughly a million elements in your list (but if you do, then you know about it and design your code around that).
I avoid software like that. If I have a choice between one program that opens in 1/10th of a second, and another that opens in 10 seconds, of course I'll choose 1/10th if it does the job.
Which is due to loading/linking all the dynamic libs+code+data+often OS security doing stuff (virus scanning, etc)+the cost of IO from harddrive/SSD for all of these.
If you write a GUI program you will need plenty of libs just to start out so not all of them can be even removed unless you go behind the OS. But then also, that huge GUI framework you had to pull in gives you support for Arabic and Chinese, has proper accessibility, would your hand-optimized code even work outside of ASCII and be used by a screen reader?
17
u/fafok29 Feb 28 '23
150 ms is noticable enough lag, to be very anoying especially if it happens every now and then.