Just another Perl shrine | |
PerlMonks |
Re^3: Use of do() to run lots of perl scriptsby LanX (Saint) |
on Mar 03, 2021 at 23:59 UTC ( [id://11129097]=note: print w/replies, xml ) | Need Help?? |
> Even with fork "do" is still much faster. Hmm... the whole picture might be more complicated. I just remembered that modern OS optimize the fork with a copy-on-write of the process' space. This means while the start of the fork might be very fast, it can slow down as soon as changes occur. OTOH this could also mean that large parts of the engine don't need to be physically copied, because they are static and no write is possible.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|