views:

705

answers:

2

Hello!

Should I prefer binary serialization over text serialization if performance is an issue ? Does anybody tested it on a large amount of data ?

A: 

I suggest you look into protobuf - Protocol Buffers if performance is an issue

"Protocol Buffers" from .Net

jitter
+2  A: 

I used boost.serialization to store matrices and vectors representing lookup tables and some meta data (strings) with an in memory size of about 200MByte. IIRC for loading from disk into memory it took 3 minutes for the text archive vs. 4 seconds using the binary archive on WinXP.

Maik Beckmann