jtdaugherty / vty

A high-level ncurses alternative written in Haskell
BSD 3-Clause "New" or "Revised" License
319 stars 57 forks source link

perf: Mark event data types as strict; unpack some fields. #234

Closed iphydf closed 2 years ago

iphydf commented 2 years ago

Integral types like Char and Int benefit a lot from UNPACK. For these, there is also very little reason to use lazy fields, especially in this codebase where most computations don't need laziness.

jtdaugherty commented 2 years ago

This change is now released in 5.35.