You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing a large object, and then boxing it, rust will allocated the struct on stack and then copy it's contents to heap, with huge objects that can be problematic performance-wise, are there any solutions to this?
The text was updated successfully, but these errors were encountered:
There is https://docs.rs/serde/latest/src/serde/de/mod.rs.html#572 which should allow you to do that, but you do need an already initialized object, and your data structures need to support this as the default just allocates on the stack first and moves the value over afterwards.
When parsing a large object, and then boxing it, rust will allocated the struct on stack and then copy it's contents to heap, with huge objects that can be problematic performance-wise, are there any solutions to this?
The text was updated successfully, but these errors were encountered: