It is possible to swap code size for speed, such as with unrolled loops and
jump tables, but I've found generally that code which is carefully crafted will
be both smaller and faster. With carefully crafted code, it is possible to
eliminate pieces of code which can be replaced by a more compact set of
instructions.
This is, of course, generally true. Knowledge and care will usually
produce a superior prodduct. My point was for those whose think that
size of code necessarily means faster, as though the distance traveled
makes the trip faster. Depends on where you are and where you're
going.
– Nelson …