[Top][All Lists]

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

Re: Patch: FYI:

From: Michael Koch
Subject: Re: Patch: FYI:
Date: Wed, 21 Jan 2004 11:34:53 +0100
User-agent: Mutt/1.3.28i

On Wed, Jan 21, 2004 at 11:20:24AM +0100, Jeroen Frijters wrote:

> +    int len = path.length();
> +    return len > 0 && beginWithRootPathPrefix(path) == len;

just a thought but wouldnt it be cleaner to write this:

   return (path.length() > 0 && beginWithRootPathPrefix(path) == path.length();

Compilers are/should be smart enough to optimize it to write path.length
into a register and use it twice.


reply via email to

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