#cache #cursive #view #text #rows #text-view #cached-text-view

cursive-cached-text-view

An implementation of Cursive's TextView that caches the rows

1 unstable release

0.1.1 Apr 18, 2023
0.1.0 Apr 18, 2023

#328 in Caching

26 downloads per month

MIT license

18KB
354 lines

cursive-cached-text-view

crates.io Rust MIT licensed

A drop-in replacement for TextView with row cache. With complex layouts and thousands of rows, this can improve performance significantly.

Example

use cursive_cached_text_view::CachedTextView;

fn main() {
    let mut view = CachedTextView::new("sample", 5);
    // the rest is the same as TextView
}

Dependencies

~7MB
~112K SLoC