is there limitation on the file size generated by serialization
hello all, we have been using boost serialization library for quite some time in small scale project. so far, we are happy with boost serialization, since it offers several features which are not found in MFC framework. before we migrate boost serialization library is large scale project, can we know 1. is there any limitation on the file size generated by serialization. i.e. what is the maximum file size which can be written by boost serialization? 2. is there any limitation on the object size, which can be loaded/ unloaded by boost serialization? 3. does boost serialization offer any way (checksum?) to ensure the file being written is not corrupted? thank you very much yccheok __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Note that all archive classes currently included with the serialization library depend one std::streambuf to do the actual input/output and hence inherit all the attributes and limitions of the implementation of streambuf that you're using. SO...
1. is there any limitation on the file size generated by serialization. i.e. what is the maximum file size which can be written by boost serialization?
make a small test program which tests wheter std::fostream can create a file larger than the size you're interested in.
2. is there any limitation on the object size, which can be loaded/ unloaded by boost serialization?
currently - 1.34 - there is a limit of 2G objects in a collection. This limitation is being relaxed on 1.35 to handle up to (2G)**2 on 64 bit machines.
3. does boost serialization offer any way (checksum?) to ensure the file being written is not corrupted?
No. This COULD be done by deriving from one of the standard archives and adding on alittle bit of extra functionality. But, if this were my concern I would make a custom streambuf to do the job and use it with my archive.
thank you very much
You're very welcom Robert Ramey
participants (2)
-
Cheok Yan Cheng
-
Robert Ramey