walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
600 stars 17 forks source link

Avoid screen refreshes #34

Closed walles closed 3 years ago

walles commented 3 years ago

Using this: https://github.com/gdamore/tcell/issues/422

I did some profiling, and my terminal app is maxing out the CPU while I'm scrolling.

If I could not update the screen when there are pending events, that would improve things. I have experimented and it was nice!

Ref: https://github.com/walles/moar/blob/db4acb57ef8b455ab3293e1b7e9e7c27d8688e97/m/pager.go#L781-L782