From: cheekai AT gen DOT co DOT jp (Chin Chee-Kai) Subject: Re: Here-Scripts in bash (fwd) 11 Apr 1997 00:48:58 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Authentication-Warning: gatekeeper.gen.co.jp: smap set sender to using -f Original-To: GNU Win32 Original-Sender: owner-gnu-win32 AT cygnus DOT com > Chin Chee-Kai wrote: > > > The first sin of programming is doing design based upon imaginary > > > costs. A getenv call only costs a couple of microseconds. > > > > > You're living in the days of Apple's 6502. Sorry, sent that out in a rush and didn't include some further explanation. I was referring more to the checking of existence of c:/tmp. This inevitably leads to checking of a failed open(), stat(), etc system calls that invoke disk operations. I dunno how the getenv() argument was brought in but maybe we're just talking about different things. Those checkings probably do take a coupla of microseconds on average. In contemporary PCs, assuming an average of 2 cycles per instruction, a 166MHz pentium can execute about 250 instructions in 3 microseconds. In an application that does creation/destruction of temp files all the time or for every transaction, it is just not something that one would say is elegant to be inserted into the loops. Chin Chee-Kai (Last, First) Internet Email-ID: cheekai AT gen DOT co DOT jp - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".