[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tpop3d-discuss][PATCH]: avoid tons of time() calls
From: |
Arkadiusz Miskiewicz |
Subject: |
Re: [tpop3d-discuss][PATCH]: avoid tons of time() calls |
Date: |
Wed, 28 Jun 2006 21:00:33 +0200 |
User-agent: |
KMail/1.9.3 |
On Wednesday 28 June 2006 20:56, Chris Lightfoot wrote:
> > In most cases if (!(c = connections[i])) will just continue and I see no
> > point to check time every iteration.
>
> ok, fair enough. Do you need the local variable, though?
> Why not just break if time(NULL) >= start + LATENCY ?
No need for local variable. Break is fine.
Don't miss ,,ps.'' about poll() ;)
--
Arkadiusz MiĆkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/