Re: [Setup-tool-hackers] copy, move and delete



On Thu, 2001-09-06 at 21:08, Joakim Ziegler wrote:
> I'd also call it amazing that something that actually does something can
> take zero time. That seems to be in conflict with ordinary physics. :)

It seems perl optimizes that loop out cause it knows what unlink
function does. It can't optimize out external commands since it doesn't
have any clue about them. Also, the file I tried to delete 1000 times
didn't exist. System call that actually deletes the file will still be
the same no matter what (rm or perl) calls it. The thing that takes time
is creating new process for subshell, and another one for rm. Just to
find out the file didn't even exist :)

Tambet


_______________________________________________
setup-tool-hackers maillist  -  setup-tool-hackers@ximian.com
http://lists.ximian.com/mailman/listinfo/setup-tool-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]