UnkindPartition / tasty

Modern and extensible testing framework for Haskell
640 stars 110 forks source link

Make computeAlignment more efficient #389

Closed Bodigrim closed 1 year ago

Bodigrim commented 1 year ago

Currently Test.Tasty.Ingredients.ConsoleReporter.computeAlignment evaluation is extremely inefficient: firstly because data Maximum lacks strictness annotations, and secondly because foldTestTree operates not even over Maximum a, but over Int -> Maximum a.

The patch improves efficiency of computeAlignment and arguably makes its implementation simpler.

CC @martijnbastiaan for review.