leejw51 / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

Slow deserialization on long memory streams #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have noticed that protobuf deserialization speed drops dramatically when 
reading from long memory streams. Longer the stream, performance is lower.

I have attached small program used to test performance. It's obvious to see how 
performance drops with bigger batchs.

Original issue reported on code.google.com by msti...@gmail.com on 20 Jan 2011 at 12:18

Attachments:

GoogleCodeExporter commented 9 years ago
Actually, with length prefix everyting is ok. Should I always use length prefix?

Original comment by msti...@gmail.com on 20 Jan 2011 at 12:19

GoogleCodeExporter commented 9 years ago
length prefix is useful when writing *multiple* objects to a single stream; 
I'll have to look at the sample later to say more..

Original comment by marc.gravell on 20 Jan 2011 at 3:21