- 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
Generated
+24 -1
View File
@@ -378,6 +378,17 @@ dependencies = [
"tracing-subscriber",
]
[[package]]
name = "cpuprofiler"
version = "0.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43f8479dbcfd2bbaa0c0c26779b913052b375981cdf533091f2127ea3d42e52b"
dependencies = [
"error-chain",
"lazy_static",
"pkg-config",
]
[[package]]
name = "crc32fast"
version = "1.4.2"
@@ -519,6 +530,16 @@ dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "error-chain"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc"
dependencies = [
"backtrace",
"version_check",
]
[[package]]
name = "fdeflate"
version = "0.3.4"
@@ -1470,7 +1491,7 @@ dependencies = [
[[package]]
name = "ratatui-image"
version = "1.0.0"
source = "git+https://github.com/itsjunetime/ratatui-image.git?branch=vb64_on_personal#88876c749898cce7801379345eb4e0bc69111b8a"
source = "git+https://github.com/itsjunetime/ratatui-image.git?branch=vb64_on_personal#8d368ca87c9b817811ba47d04d188a334e5da5a6"
dependencies = [
"base64 0.22.1",
"dyn-clone",
@@ -1478,6 +1499,7 @@ dependencies = [
"image",
"rand",
"ratatui",
"rayon",
"rustix",
"vb64",
]
@@ -1809,6 +1831,7 @@ version = "0.1.0"
dependencies = [
"cairo-rs",
"console-subscriber",
"cpuprofiler",
"criterion",
"crossterm",
"flume",