PC Review


Reply
Thread Tools Rate Thread

Any size limitation on the BinaryFormatter serialization

 
 
Dominic
Guest
Posts: n/a
 
      6th Feb 2004
Hi everybody,

In my application, I'm planning to use BinaryFormatter to serialize a
potentially huge object to file (and, of course, deserialize back to
memory later). My question is if there is any hard limit on the size
of this object?

Is it only limited by the amount of memory or hard-disk space in the
server?

If there is no limit, how scalable is this serialization process?

Thanks in advance for any input to this subject
Dominic
 
Reply With Quote
 
 
 
 
Justin Rogers
Guest
Posts: n/a
 
      6th Feb 2004
BinaryFormatter can take a memory stream or any type of stream. So you can
serialize
directly to disk. When you deserialize, you'll need enough memory to recreate
the object
tree that you originally serialized. Currently there isn't really any way to
figure out how much
memory your object is going to take without using the ICorProfiler interfaces.

BinaryFormatter is extremely fast. It is used for remoting and many other time
critical applications
so it will continuously be improved on for performance. However, it isn't
extremely robust. A single
touch to the file on disk can cause it to be unreadable. You can see more about
this tamper issue on
my blog: http://weblogs.asp.net/justin_rogers.../02/66508.aspx


--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers


"Dominic" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi everybody,
>
> In my application, I'm planning to use BinaryFormatter to serialize a
> potentially huge object to file (and, of course, deserialize back to
> memory later). My question is if there is any hard limit on the size
> of this object?
>
> Is it only limited by the amount of memory or hard-disk space in the
> server?
>
> If there is no limit, how scalable is this serialization process?
>
> Thanks in advance for any input to this subject
> Dominic



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BinaryFormatter Serialization format? Is it documented? googlenewsgroups@theisaacfamily.co.uk Microsoft C# .NET 5 1st May 2007 07:36 PM
BinaryFormatter serialization size. Ken Varn Microsoft Dot NET Framework 1 28th Jul 2006 09:17 AM
BinaryFormatter/Serialization Problem with Threads John Microsoft C# .NET 0 14th Jan 2006 08:44 PM
Any size limitation on the BinaryFormatter serialization Dominic Microsoft C# .NET 1 6th Feb 2004 10:56 PM
Any size limitation on the BinaryFormatter serialization Dominic Microsoft Dot NET Framework 1 6th Feb 2004 10:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 AM.