Dan Eble <d...@faithful.be> writes:

> There can be a run-time performance difference between branching or
> not branching.  For the times you actually care, if you're not going
> to use compiler-specific features to mark conditions as likely or
> unlikely, you should test the likely case first so that there is no
> branching most of the time.

Modern compilers pay very little attention to how you arrange the source
code of equivalent constructs.

> You can also write functions that are equally difficult to read with
> both.

No.  Humans begin reading at the beginning and go forward from there.
There is a difference between having one case dealt with completely, and
having to keep it in mind while reading something else.

Basically you are saying "juggling with one ball can be equally
difficult to juggling with two" and conclude from that dubious premise
that juggling any number of balls is equally hard.

-- 
David Kastrup


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to