ZeroFormatter icon indicating copy to clipboard operation
ZeroFormatter copied to clipboard

Serialize limit

Open marcorocci opened this issue 7 years ago • 1 comments

Hello, i encountered error on trying to serialize a lot amount of data. The project attached show the problem. Maybe is there a limit of serialization to 1 GB of bytes?

Can someone explain me better the limit? Thanks a lot. Best regards

[MillionsZeroFormatters.zip] (https://github.com/neuecc/ZeroFormatter/files/1441812/MillionsZeroFormatters.zip)

marcorocci avatar Nov 03 '17 16:11 marcorocci

I am seeing the same issue... a hard limit of 1GB. I am able to serialize an object graph to a file size of 1GB, 11,184,815 elements of my object in an array. However, if I increase the array size by 1, ZeroFormatter enters a seemingly infinitely loop and never returns from Serialize(). I should note that I see the same issue when using a MemoryStream rather than FileStream.

Here, note the memory consumption when the serialization is successful. This produces a file of 1,073,742,244 bytes.

zeroformatter good

Here, with one more element. This continues forever (hours at least).

zeroformatter bad

@neuecc, are you aware of such a limitation?

Thanks.

brinko99 avatar Aug 15 '18 21:08 brinko99