March 2002 Perl Hardware Store 7

  1. Schwartzian Transform


    • Warning: Do not optimize without benchmarking!

        User   System Total
        5.11 + 6.83 = 11.94             Naive sort
        7.37 + 0.82 =  8.19             Schwartzian transform

Premature optimization is the root of all evil.



Next Copyright © 2002 M-J. Dominus