Test case generator for pretty combinators
prettydoes seem to have some quadratic behaviour (As a user, I am shocked. Ndm says that after reading the source, he would have been shocked if it was less than quadratic.)
- It seems it's not getting worse that that. I enumerated small contexts and found none that shows drastically different behaviour.
- For these tests, it does not matter that we render to plain
Stringswhich has inefficient
(++). I used a different render function that just computes a number: results are quite exactly the same.
- There's something wrong in
-extras), see https://github.com/ekmett/wl-pprint-extras/issues/16
- use this for testing:
length $ render $ iterate ( \ hole -> sep [text "l", cat [hole], text "l"] ) (text "l") !! 1000