--WulRBKvtygI9tSt8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable
On Thu, Jan 24, 2002 at 08:17:25PM +0100, Karsten Festag wrote: > I read somewhere that ++bit would give faster code than bit =3D bit + 1. > Now my question (as a non-expierienced programmer) is if >=20 > ++bit; > bit %=3D 8; >=20 > is faster than your suggestion or do you think it makes no difference? I think it can only be slower, since unless bit is a register then it requires another memory store. In general, write code for maintainability rather than speed; compiler optimizations get better with time, and particular problem areas can be found using profiling tools if need be. Tim. */ --WulRBKvtygI9tSt8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8UICMyaXy9qA00+cRAtU9AJ9nGXQBodYKBaIVWwB3czmW1YTo1gCfcuVb U/ef3nkseGFublhH4KmnSj0= =udFI -----END PGP SIGNATURE----- --WulRBKvtygI9tSt8--