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
That's on purpose. The first serialization is using an archive which only keeps track of how many bytes would have been written in order to correctly estimate the overall required buffer size for the actual serialization.
If at all, i think it would be more efficient to have a buffer that grows exponentially, in multiple pieces, and then merge them via memcpy instead of doing an entire serialization twice.
@Finomnis, there is no copying going on in the first pass, we just look and see how many bytes would have been copied to completely avoid reallocation.
I believe that there is an unnecessary serialization of arguments for remote action invocations.
Here is a minimal example:
The output of this program is:
In my opinion, the serialization function should not get called twice.
The text was updated successfully, but these errors were encountered: