UnkindPartition / tasty

Modern and extensible testing framework for Haskell
637 stars 108 forks source link

Make computeAlignment more efficient #389

Closed Bodigrim closed 10 months ago

Bodigrim commented 10 months 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.