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

Chris Wilson boxbackup-dev at fluffy.co.uk
Wed Aug 9 10:37:29 BST 2006


Hi Nick,

> For compilers switches are more efficient, if's and elsifs if it is the 
> 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 
over efficiency until we have a measurable efficiency problem (not just a 
few machine cycles of comparing ints).

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | 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 |



More information about the Boxbackup-dev mailing list