ov icon indicating copy to clipboard operation
ov copied to clipboard

Don't read entire entire file into memory

Open dufferzafar opened this issue 3 years ago • 1 comments

One of the property of pagers like less is that they are memory bounded by default, so they don't read the entire file into memory and can easily be used on huge files (say 100s of GBs)

Looking at less source code, this doesn't seem trivial to implement.

But this would be a great win for ov!

dufferzafar avatar Jun 19 '22 06:06 dufferzafar

Thank you. The policy is different from less, but I will consider the upper limit.

noborus avatar Jun 19 '22 18:06 noborus

Could just mmap, no?

ILoveGoulash avatar Jan 04 '23 10:01 ILoveGoulash

Implemented in v0.20.0. Please give it a try. (This release may be unstable.)

noborus avatar May 06 '23 05:05 noborus

I officially released v0.30.0. This has been resolved.

noborus avatar May 31 '23 22:05 noborus