[tpop3d-discuss][PATCH]: avoid tons of time() calls

Arkadiusz Miskiewicz arekm at pld-linux.org
Wed, 28 Jun 2006 21:00:33 +0200


On Wednesday 28 June 2006 20:56, Chris Lightfoot wrote:

> > In most cases if (!(c =3D 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) >=3D start + LATENCY ?
No need for local variable. Break is fine.

Don't miss ,,ps.'' about poll() ;)
=2D-=20
Arkadiusz Mi=B6kiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/