bincode icon indicating copy to clipboard operation
bincode copied to clipboard

Document cleary that the limit configuration is about allocating memory

Open LLFourn opened this issue 1 year ago • 2 comments

Currently it just says it's a "byte limit" but one could easily assume that it's bytes read rather than bytes allocated while decoding.

LLFourn avatar Dec 19 '24 06:12 LLFourn

Wait, so the limit isn't the maximum size that an encoded object can have?

LechintanTudor avatar Dec 28 '24 21:12 LechintanTudor

The byte limit is an estimate on how much it would take to keep the decoded structure in memory

VictorKoenders avatar Dec 29 '24 11:12 VictorKoenders