Draft: Perf: avoid using 'length'
I almost forgot I checked every use of length
in the compiler some time ago to use lengthAtMost
etc. instead. Perf improvements were nice (see below). Let's see what CI says now.
T3064(normal) ghc/alloc 196357296.0 176517888.0 -10.1%
T18223(normal) ghc/alloc 1197720540.0 1117591992.0 -6.7%
T17836(normal) ghc/alloc 1115563892.0 1081448496.0 -3.1%