Re: [Setup-tool-hackers] copy, move and delete
- From: Tambet Ingo <tambet ximian com>
- To: Joakim Ziegler <joakim ximian com>
- Cc: setup-tool-hackers ximian com
- Subject: Re: [Setup-tool-hackers] copy, move and delete
- Date: 06 Sep 2001 22:14:04 +0200
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]