Files
LLeMbas-TTY/docs
LoggerandIdo Samuelson 3ff7522b96 image(perf): hash each transmitted image once (#8065)
ImageDataType::Rgba8 carries the sha256 of its pixels, set wherever one
is built and refreshed wherever the pixels are mutated.
compute_hash always re-hashed the pixels to produce same stored hash.

Image hashing ran 3 times for every transmitted image:
- once in new_single_frame on image creation
- once for the cache key in raw_image_to_image_data
- once more in ImageData::with_data on the miss path

A 2400x1440 RGBA frame is 13.18MiB, so a client transmitting frames at
60fps spends most of its time budget there.

AnimRgba8 keeps hashing, because its stored hashes are per-frame, not
global, which compute_hash needs (all frames + their durations).

---------
Co-authored-by: Ido Samuelson <i-am-logger@users.noreply.github.com>
2026-08-19 18:37:03 +02:00
..
2024-07-15 06:39:26 -07:00
2025-05-03 06:59:43 -07:00
2025-02-07 13:08:01 -07:00
2025-02-07 13:08:01 -07:00
2026-08-04 16:07:57 +02:00
2025-02-07 13:08:01 -07:00
2023-02-25 18:19:47 -07:00
2025-05-09 10:04:05 -07:00
2024-09-14 07:39:33 -07:00
2026-07-31 08:32:02 +02:00
2023-03-15 20:54:02 -07:00
2023-04-02 23:14:42 -07:00
2024-01-25 13:09:36 -07:00
2025-02-22 13:24:20 -07:00
2025-02-08 15:46:46 -07:00
2024-09-14 07:39:33 -07:00

This directory contains the sources for the documentation. Read the generated documentation at: https://wezterm.org