News for hackers. Stuff that matters.
Re:Applying the Unix Philosophy to Object-Oriented Design by noblethrasher on Wednesday November 28, 2012 @06:47PM (#4845503)
Code that is organized so that it minimizes context switches is ofen faster and more efficient than code that doesn't.

E.g. sometimes this code:

  foreach (x in xs)
      F(x);

   foreach (x in xs)
      G(x);

   foreach (x in xs)
      H(x);
is faster/more efficient than this:

   foreach (x in xs)
   {
        F(x);
        G(x);
        H(x);
   }

There are no comments on this comment yet.