Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com Message-ID: <3CCD6C06.DC27ED50@yahoo.com> Date: Mon, 29 Apr 2002 11:51:34 -0400 From: Earnie Boyd Reply-To: Earnie Boyd X-Accept-Language: en MIME-Version: 1.0 To: "Larry Hall (RFK Partners, Inc)" CC: Earnie Boyd Subject: Re: ITP: netpbm References: <20020429115530 DOT B11549 AT cygbert DOT vinschen DOT de> <4 DOT 3 DOT 1 DOT 2 DOT 20020429105149 DOT 02ccc968 AT pop DOT ma DOT ultranet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Larry Hall (RFK Partners, Inc)" wrote: > > At 07:44 AM 4/29/2002, Earnie Boyd wrote: -8<- > The point is, the extra path walks are > >expensive. > > Quite true. But I would say that Corinna's suggestion, from a strict > technical perspective, makes netpbm in a different bin directory usable > 'out-of-the-box' under Cygwin. If netpbm were going to be put in it's > own bin directory, I would say that adding files like the ones Corinna > suggests is an absolute requirement. > Yes, but you missed the point. Go ahead, add something to the end of your PATH and execute it with strace. Then see how many times the pathing routines are called to search for a symlink. It's once for each directory listed in PATH and I mean each directory listed in the path name of the path list (E.G.: a PATH of /usr/local/bin:/bin:/usr/bin has six directories in it). And if someone has a symlink in PATH, it's called again to see if the file pointed to by the symlink is a symlink. Note, the coding is necessary for symlink simulation, but it's slows down time it takes to find the binary file to exec. Keep the binaries to the front of the PATH and put them in /bin. Earnie.