Skip to content

perf(desktop): hash payload receipts during transport IO - #128

Merged
rldyourmnd merged 1 commit into
mainfrom
perf/cpu-receipt-hashing-20261008
Oct 7, 2026
Merged

rldyourmnd merged 1 commit into
mainfrom
perf/cpu-receipt-hashing-20261008

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

The Linux desktop agent spent ~23.6% of sampled CPU cycles in BLAKE3 hashing while payload receipts were enabled. The sender hashed every encoded frame before writing it, and the receiver hashed the complete body again after reading it.

This change keeps the proof semantics identical while hashing incrementally: the sender updates BLAKE3 from bytes accepted by the async writer, and the receiver updates it as chunks arrive. A receipt cannot be confirmed before the sender has finalized its digest, and transport-only evidence remains distinct.

Validation: cargo fmt, rds-desktop receipt/session tests, targeted clippy. Baseline profile is retained privately; post-merge Linux profile will compare the same workload.

@rldyourmnd
rldyourmnd merged commit e9847f2 into main Oct 7, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant