delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/11/00:48:58

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: <Pine.3.07.9704111224.A19234-b100000.cygnus.gnu-win32@sumimasen.gen.co.jp>
Mime-Version: 1.0
X-Authentication-Warning: gatekeeper.gen.co.jp: smap set sender to <cheekai AT gen DOT co DOT jp> using -f
Original-To: GNU Win32 <gnu-win32 AT cygnus DOT com>
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.
> > > <J Q B>
> > 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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019