- Add profiling with --profile-time

- Update ratatui_image to get improvements from parallelization and removing unnecessary hashing
- Add benchmarks for only converting pages (not rendering)
- Add option to define number of pages to prerender on converter
This commit is contained in:
itsjunetime
2024-06-05 00:20:18 -06:00
parent 8feea1127b
commit f893ecba4d
8 changed files with 230 additions and 66 deletions
+2
View File
@@ -27,12 +27,14 @@ pub enum RenderInfo {
Page(PageInfo)
}
#[derive(Clone)]
pub struct PageInfo {
pub img_data: ImageData,
pub page: usize,
pub search_results: usize
}
#[derive(Clone)]
pub struct ImageData {
pub data: Vec<u8>,
pub area: Rect