mirror of
https://github.com/walles/moar.git
synced 2024-11-30 02:34:13 +03:00
c8a8cb4517
Test: * Open a 35MB text file * Search it for some string it doesn't contain Memory usage before this change: 2.3GB Memory usage after this change: 0.5GB The trick is to only provide cells from Lines on demand, since we only need a few of them when scrolling. And not storing all of those cells is where the gain in memory usage comes from. |
||
---|---|---|
.. | ||
ansiTokenizer_test.go | ||
ansiTokenizer.go | ||
embed-api.go | ||
highlight.go | ||
matchRanges_test.go | ||
matchRanges.go | ||
pager_test.go | ||
pager.go | ||
reader_test.go | ||
reader.go |