mirror of
https://github.com/edu4rdshl/Strata.git
synced 2026-07-18 07:34:45 +00:00
The D-Bus interface previously returned content as a base64-encoded string (type 's'), requiring the daemon to encode and GJS to decode on every paste. D-Bus natively supports byte arrays (type 'ay'), eliminating both encode and decode steps entirely. Changes: - dbus_service.rs: return (String, Vec<u8>); drop base64 calls - dbus.js: content_b64 arg changed from type 's' to type 'ay' - panel.js: remove GLib.base64_decode(); pass ay bytes directly - Cargo.toml/Cargo.lock: remove base64 dependency (no longer used) For a 1 MB text paste this avoids allocating a 1.33 MB intermediate string and decoding it on the compositor main thread. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| clipboardItem.js | ||
| panel.js | ||