Open evgenykuzyakov opened 5 years ago
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
@pmnoxx is this issue resolved ?
@Rishabhraghwendra18 More work is required. I have a script, which prints all places where this issue happens.
Ok.. no problem @pmnoxx . I will find some other issue to work on
@Rishabhraghwendra18 I started working on fixing it for near-network
. https://github.com/near/nearcore/pull/5834
The issue is a bit complicated, as some other code changes / refactoring are required. I don't think it's a good issue to start with.
Once borsh supports Box serialization, we should switch to it: https://github.com/nearprotocol/borsh/issues/19
Enums preallocate memory for the largest item. For example the same enum (e.g.
PeerMessage
) containsHandshake
andBlock
orChunkOnePart
.Handshake
enum value will have the same fixed memory size as the largest item