News for hackers. Stuff that matters.
Re:Python Patterns - An Optimization Anecdote by danielh on Tuesday November 02, 2010 @01:22PM (#1861365)
It's a whole different story if the input gets longer and the quadratic complexity kicks in. Just change the testdata like this:

  testdata = range(256)*100
Result:

  f1 5.539
  f2 40.747
  f3 5.072
  f4 5.311
  f5 0.068
  f6 3.304
  f7 1.431

There are no comments on this comment yet.