bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] same.c optimization


From: Jim Meyering
Subject: Re: [Bug-gnulib] same.c optimization
Date: Tue, 14 Jan 2003 14:40:14 +0100

> Here is a proposed change to same.c. It doesn't change anything of the
> semantics, but it will avoid stat() when not needed, by doing first the
> checks which don't need system calls, and then only the checks which call
> stat(). What do you think?
>
> 2003-01-11  Bruno Haible  <address@hidden>
>
>       * same.c (same_name): Reorder tests so as to avoid calling stat()
>       when a string comparison is sufficient.

Hi Bruno,
That looks great.  Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]