Replies: 2 comments
-
I wonder what will be the performance difference between using #[derive(serde::Serialize)]
struct NodeObj {
id: String,
first_name: String
// ...
}
// then in code
env.to_js_value(&vec![NodeObj { ... }]); |
Beta Was this translation helpful? Give feedback.
0 replies
-
According to the benchmark result, I think the fastest way is serialize strut into string, and
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a library for database queries, using tokio-postgres, I'm newbie at rust and just began and it already performs a bit faster than a node library! I'm so happy.
By benchmarking it seems that half time rust spends on serializing to JsObject, here is what I have:
What is the fastest way construct objects?
All objects in array have the same set of properties, can I use this knowledge somehow?
Beta Was this translation helpful? Give feedback.
All reactions