waffle
waffle copied to clipboard
Optimize
See #47
Also here are some other notes:
Actually, Data.Text switch is great! Less memory hungry by a lot, roughly the same processor intensity. Processor crunching due to <> and un/pack'ing where not necessary. Should cache certain widgets and be careful about those operations/avoiding doing certain things every single update.
tl;dr: <> expensive also cache widgets so not do every time. However, caching widgets can be extremely memory-hungry, especially when menus are huge you'd need a smart way to not cache widgets that are out-of-view... might not even be worthwhile to cache them! May be able to think of a more sophisticated solution.
Should just clean contents from the get-go and not do it every update!
Some widgets COULD be cached into the representations, like text file contents!
I just optimized text file viewing mode in v0.8.0
benchmark, profile, optimize