472,341 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

serializing a class & performance -- advice?

We are thinking of serializing an object & passing it toseveral functions on
web service.
This will happen about 35 times as the page loads. The class has about 20
attributes.

We're not sure on the impact serializing something has on an asp.net page
rendering, compared to say, hitting the db or something like that.
THanks

Jason Shohet

Nov 17 '05 #1
4 1590
Jason,

I've found .Net to be very efficient. I have some routines that do a lot
more than what you're talking about and everything is running perfectly.

Of course, it all depends on the hardware also. We are running a web farm
and each box has dual itanium processors and a gig of memory so the best
advice I can give you is test it out and see.

Do you know about the "Microsoft Application Center Test" program that .Net
comes with. It's a great application that lets you hit the web server with
any number of user requests you want in order to test responsiveness.

You'll find it at: Start - All Programs - Microsoft Visual Studio.Net 2003
(or 2002 has it also) - Visual Studio.Net Enterprise Features - Microsoft
Application Center Test

Good luck testing!

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
" Jason Shohet" <as****@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...
We are thinking of serializing an object & passing it toseveral functions on web service.
This will happen about 35 times as the page loads. The class has about 20 attributes.

We're not sure on the impact serializing something has on an asp.net page
rendering, compared to say, hitting the db or something like that.
THanks

Jason Shohet

Nov 17 '05 #2
Thank you Justin. We're going to serialize... it just makes maintenance
much easier to maintain, passing around an object instead of dozens of
parameters flying all over the place :)
Even though the object will be passed a few dozen times from the
codebehind page to various webservice functions, we're going to try it.

The 'Application Center Test', I tried that, but it told me that perhaps
there weren't sufficient permissions on the server. Any idea what is req'd.
If not i'll ask on the ng for that product.

Thanks
Jason Shohet
Nov 17 '05 #3
Sorry, but I haven't run into a permissions problem myself, but our
development server (a mimic of production but behind our firewall) is pretty
open.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
" Jason Shohet" <as****@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP11.phx.gbl...
Thank you Justin. We're going to serialize... it just makes maintenance
much easier to maintain, passing around an object instead of dozens of
parameters flying all over the place :)
Even though the object will be passed a few dozen times from the
codebehind page to various webservice functions, we're going to try it.

The 'Application Center Test', I tried that, but it told me that perhaps
there weren't sufficient permissions on the server. Any idea what is req'd. If not i'll ask on the ng for that product.

Thanks
Jason Shohet

Nov 17 '05 #4
while serializing 35 times a page request will be ok, 35 web service calls a
page will be a real performance bottleneck. web services shoot for about
100-200 hits/sec, so your main site would max out at about 4-8 hits/sec.

-- bruce (sqlwork.com)


" Jason Shohet" <as****@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...
We are thinking of serializing an object & passing it toseveral functions on web service.
This will happen about 35 times as the page loads. The class has about 20 attributes.

We're not sure on the impact serializing something has on an asp.net page
rendering, compared to say, hitting the db or something like that.
THanks

Jason Shohet

Nov 17 '05 #5

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

Similar topics

3
by: Charles Hartman | last post by:
I know the answer to this is going to be "It depends . . .", but I want to get my mind right. In Fowler's *Refactoring* I read: "Older languages...
1
by: Ivo Bronsveld | last post by:
All, I have quite a challenging task ahead of me. I need to write an object model (for code access) based on a schema, which cannot be made into...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of...
2
by: Tobias Zimmergren | last post by:
Hi, just wondering what serializing really is, and howto use it? Thanks. Tobias ...
1
by: Martin Widmer | last post by:
Hi guys I am wondering what is a proper way to persistently store objects into SQL-Server. I see four possible ways: 1.) Serialize to XML and...
4
by: Mantorok | last post by:
Hi all Is there a way to serialize the current form's layout to a string or file? I'll re-phrase - is there an EASY way to do it ;-) Thanks...
5
by: pt | last post by:
Hi, i am wonderng what is faster according to accessing speed to read these data structure from the disk in c/c++ including alignment handling if...
23
by: arnuld | last post by:
i was doing exercise 4.3.1 - 4.29 of "C++ Primer 4/e" where authors, with "run-time shown", claim that C++ Library strings are faster than C-style...
7
by: fjlaga | last post by:
I have written an Office Add-in for Excel using VB.NET and the .NET 1.1 Framework (I have Visual Studio 2003 .NET ). All works great. I want to...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.