tauri/core
Lucas Fernandes Nogueira d0510f52eb
refactor(core): serialize response once, closes #5641 (#10641)
* refactor(core): serialize response once closes #5641

This change impacts both the custom protocol and the postMessage based IPC implementations. Basically it changes the whole IPC mechanism to work on raw JSON strings so we do not need to serialize a serde_json::Value after serializing to it from a user-provided type.

i benchmarked this with a 150MB file response (returning Vec<u8> instead of tauri::ipc::Response since the latter does not serialize at all) and it went from 29s to 23s (custom protocol) and from 54s to 48s (post message) on macOS.

* fix mobile & lint

* clippy
2024-08-15 16:15:11 -03:00
..
tauri refactor(core): serialize response once, closes #5641 (#10641) 2024-08-15 16:15:11 -03:00
tauri-acl-schema prevent unnecessary rebuilds when working in the cargo workspace (#10442) 2024-08-02 07:30:02 -03:00
tauri-build chore(deps) Update Rust crate json-patch to v2 (dev) (#10515) 2024-08-10 16:45:24 -03:00
tauri-codegen chore: update brotli dependency to v6 (#10436) 2024-08-11 08:23:31 -03:00
tauri-config-schema refactor(core): serialize response once, closes #5641 (#10641) 2024-08-15 16:15:11 -03:00
tauri-macros apply version updates (#10532) 2024-08-08 23:52:47 -03:00
tauri-plugin apply version updates (#10532) 2024-08-08 23:52:47 -03:00
tauri-runtime apply version updates (#10532) 2024-08-08 23:52:47 -03:00
tauri-runtime-wry refactor(core): serialize response once, closes #5641 (#10641) 2024-08-15 16:15:11 -03:00
tauri-utils refactor(core): serialize response once, closes #5641 (#10641) 2024-08-15 16:15:11 -03:00
tests yarn prettier --write core (#10471) 2024-08-10 15:44:33 -03:00