diff options
fix: improve performance without mutlithreading by ~50x
this is done by LazyLocking the system fonts loading code
performance increase was done by comparing the output of time target/release/batacli on a 64GB DDR4 RAM, Linux x86_64 system with an NVME SSD.
raw results:
- this commit: 4.93s user 2.54s system 98% cpu 7.561 total
- previous commit: 63.19s user 307.15s system 97% cpu 6:18.31 total
Diffstat (limited to 'src/xcursor.rs')
| -rw-r--r-- | src/xcursor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcursor.rs b/src/xcursor.rs index 7e365e4..2fb0c99 100644 --- a/src/xcursor.rs +++ b/src/xcursor.rs @@ -97,7 +97,7 @@ impl XCursorEncoder { insert_bytes(&mut data, &img.data); } } - + data } } |