waffle icon indicating copy to clipboard operation
waffle copied to clipboard

Optimize

Open hyperrealgopher opened this issue 5 years ago • 4 comments

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.

hyperrealgopher avatar May 03 '20 03:05 hyperrealgopher

Should just clean contents from the get-go and not do it every update!

hyperrealgopher avatar May 03 '20 03:05 hyperrealgopher

Some widgets COULD be cached into the representations, like text file contents!

hyperrealgopher avatar May 03 '20 04:05 hyperrealgopher

I just optimized text file viewing mode in v0.8.0

hyperrealgopher avatar Jul 10 '20 08:07 hyperrealgopher

benchmark, profile, optimize

hyperrealgopher avatar Dec 09 '20 21:12 hyperrealgopher