[Box Backup-dev] [PATCH] Win32 merge [05] bbackupd

Nick Knight boxbackup-dev at fluffy.co.uk
Wed Aug 9 10:53:58 BST 2006


Fair point - my background is DSP's!

-----Original Message-----
From: boxbackup-dev-admin at fluffy.co.uk
[mailto:boxbackup-dev-admin at fluffy.co.uk] On Behalf Of Chris Wilson
Sent: 09 August 2006 10:37
To: boxbackup-dev at fluffy.co.uk
Subject: RE: [Box Backup-dev] [PATCH] Win32 merge [05] bbackupd

Hi Nick,

> For compilers switches are more efficient, if's and elsifs if it is
the=20
> last match then it runs them all, typically a lot of compilers compile

> switch statements into jump tables (AFAIK).

Premature optimisation is the root of all evil :-) I'd favour
readability=20
over efficiency until we have a measurable efficiency problem (not just
a=20
few machine cycles of comparing ints).

Cheers, Chris.
--=20
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |
_______________________________________________
Boxbackup-dev mailing list
Boxbackup-dev at fluffy.co.uk
http://lists.warhead.org.uk/mailman/listinfo/boxbackup-dev



More information about the Boxbackup-dev mailing list