473,386 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Serialization performance

Joe
I have a strange problem. I'm serializing a class which takes < 2 seconds on
a couple of machines but other machines this same process can take 1-2
minutes. Is there any way to track this down?

-Joe
Nov 17 '05 #1
6 1401
Hi Joe,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that some of your machine will take about
1-2 min to do the serialization process. If there is any misunderstanding,
please feel free to let me know.

This depends on how you serialize your class. Also, is there any security
setting on you machine that requires certain permission sets on the
machine? Please also try it on a clean machine to see if it works fine.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #2
Hey Joe, I like the name. You stated that its taking 2 seconds to serialize
'a class', is this one class occuring once?! Because to state that its
taking <2 seconds instead of 2 milliseconds or whatever is a huge
performance issue. What kind of class is this? Are you doing serialization
through the .net framework or is this a custom job? How about a code
example?

Regardless I would suggest using
http://www.red-gate.com/products/ants_profiler/ , they got a generous trail
offerr and its a great price for what this does. And 2.0 compatable.
"Joe" <jb*******@noemail.noemail> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I have a strange problem. I'm serializing a class which takes < 2 seconds
on a couple of machines but other machines this same process can take 1-2
minutes. Is there any way to track this down?

-Joe

Nov 17 '05 #3
Joe
To answer your and Kevin's questions: There are no security issues to worry
about. The serialization completes on any machine but some are much, much
faster.

I have one class which contains a number of other classes. Some of these
classes inherit from CollectionBase others don't.

I'm using the BinaryFormatter.Serialize() method.

The 2 machines which serilize in < 2 seconds are both Win 2003 servers. The
machines that take longer (anywhere from 30 seconds to 2 minutes) are Win XP
pro & Win 2k pro.

We're testing the exact same data on each machine.

I'll check out the links..

Thanks,
Joe

"Joe [MCAD]" <jo***************@yahoo.com> wrote in message
news:y0*****************@newssvr12.news.prodigy.co m...
Hey Joe, I like the name. You stated that its taking 2 seconds to
serialize 'a class', is this one class occuring once?! Because to state
that its taking <2 seconds instead of 2 milliseconds or whatever is a huge
performance issue. What kind of class is this? Are you doing serialization
through the .net framework or is this a custom job? How about a code
example?

Regardless I would suggest using
http://www.red-gate.com/products/ants_profiler/ , they got a generous
trail offerr and its a great price for what this does. And 2.0 compatable.
"Joe" <jb*******@noemail.noemail> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I have a strange problem. I'm serializing a class which takes < 2 seconds
on a couple of machines but other machines this same process can take 1-2
minutes. Is there any way to track this down?

-Joe


Nov 17 '05 #4
Hi Joe,

Please also check if windows xp sp2 and .net framework 1.1 sp1 has been
applied to the machines that takes long time for serializations.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #5
Joe
I did verify that the machines have SP2 for XP and framework SP1. But, one
of the machines is Win2k pro.

Any suggestions as to what could cause this?

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:LM**************@TK2MSFTNGXA01.phx.gbl...
Hi Joe,

Please also check if windows xp sp2 and .net framework 1.1 sp1 has been
applied to the machines that takes long time for serializations.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #6
Hi Joe,

It's hard to explain why this happens on these machines. Does all the win
xp machines has a performance hit of this issue? In this case, I strongly
recommend you use the profiler that another Joe has suggested to see which
code is blocking this.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave Romig | last post by:
Can anyone provide guidance for saving and restoring an XMLDOM object as a binary blob? In a VB application, I need to repeatedly save and restore a large, dynamic XML document. Currently, the...
2
by: Wayne Wengert | last post by:
This is my first attempt to re-write an old VB6 application that exported a CSV file to a .NET application that exports an XML file with the equivelent data. I have limited understanding of OO...
1
by: Mountain Bikn' Guy | last post by:
We have an app that computes a lot of numeric data. We would like to save to disk about 1-2 gigabytes of computed data that includes ints, doubles, strings and some complex objects that contain...
11
by: ajou_king | last post by:
I was running some tests on my Win32 1GHZ processor to see how long it would take to transmit objects numerous times via TCP/IP using C# ..NET Remoting vs the C++ trustworthy method of binary...
7
by: schoenfeld1 | last post by:
I've implemented IPC between two applications using named pipes and binary serialization, but have noticed that the binary formatter is rather slow. It seems that the binary formatter reflects...
3
by: umbertoeklat | last post by:
as a proof of concept, am trying create a web app w/ an XML file as a temp DB What is the fastest way to do serialization/deserialization? or maybe the better question would be how to...
7
by: Joe | last post by:
I've tracked the performance issue down to a single class. This class derives from CollectionBase and stores a basic value type such as string, int, double, etc... I also store the type itself...
3
by: _DD | last post by:
I had one experimented with binary serialization of an ArrayList of structs (each struct mostly contains strings). Strangely enough, it did not run as fast as custom XML storage (latter was...
4
by: anandsoni | last post by:
I have been working with a project where I need to deal with lot of data. This data includes 10 thousands of records in the data grid. There are thousand of users connected to the application, this...
11
by: William | last post by:
I'm looking for an example that would show how to serialize a c++ object at it's simplest w/o using any other api's. I have a class that I want to serialize and then pass to my obj-c class so I can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.