Sujet : Re: I installed openSUSE Leap
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacyDate : 25. Oct 2024, 00:08:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfek23$2qk0v$14@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
User-Agent : Pan/0.160 (Toresk; )
On Thu, 24 Oct 2024 17:58:41 -0400, DFS wrote:
ldo@theon:test> time for i in $(seq 1 99998); do fn=$(printf %0.5d.png $i); touch $fn; done
>
real 3m9.451s
user 1m56.907s
sys 1m18.000s
>
Do you want me to try it again?
No need. It's proven to be an inferior solution here.
Here is a faster version.
ldo@theon:test> time for i in $(seq 1 99998); do fn=$(printf %0.5d.png $i); echo >$fn; done
real 1m22.733s
user 0m47.151s
sys 0m38.177s
Why is it faster? Because the “touch” command is an external program.
So the previous version was doing close to 100,000 executions of an
external program, creating a new process each time, which added about
100 seconds to the elapsed time. That’s 1000 program executions, i.e.
1000 new processes, per second.
How long do you think your Windows system would take to create a new
process to execute an external program 100,000 times? Think it would
get anywhere close to 1000 process creations per second? Think it
would stay up till the end?
How’s it holding up so far? Did you have to do a reinstall
afterwards?
>
Win11 rocks. It's EXTREMELY stable, and almost glitch-free.
I like that “almost” ...