The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^3: Use of do() to run lots of perl scripts
by LanX
|
|