* Track marshal/unmarshal performance

* Use Cbor

* Refine

* Drop logging

---------

Co-authored-by: GG Bond <whatever@tagkong.com>
This commit is contained in:
Vladimir DostoyevskiyandGG Bond authored and GitHub committed 2023-12-31 07:36:42 +00:00
1 parent 9eb606810f
commit c817726ab3
3 files changed
+9 -30

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ tl = "0.7"
log = "0.4"
android_logger = { default-features = false, version = "0.13" }
once_cell = { default-features = false, version = "1.19" }
serde_json = "1.0"
serde_cbor = "0.11"
serde = { version = "1.0", features = ["derive"] }
[profile.release]
+1 -1
View File
@@ -91,7 +91,7 @@ where
let slice = slice_from_raw_parts_mut(ptr, 0x80000);
Cursor::new(&mut *slice)
};
serde_json::to_writer(&mut cursor, &value).unwrap();
serde_cbor::to_writer(&mut cursor, &value).unwrap();
cursor.position() as i32
}
}