Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > serializing a class & performance -- advice?

Reply
Thread Tools

serializing a class & performance -- advice?

 
 
Jason Shohet
Guest
Posts: n/a
 
      07-29-2003
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



 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      07-29-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
 
 
 
Jason Shohet
Guest
Posts: n/a
 
      07-29-2003
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


 
Reply With Quote
 
S. Justin Gengo
Guest
Posts: n/a
 
      07-29-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      07-29-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Serializing a derived class deja@2bytes.co.uk ASP .Net Web Services 0 09-12-2006 11:33 AM
[YAML] serializing Class and Module objects Joel VanderWerf Ruby 3 02-11-2006 07:52 PM
Class A contains class B, class B points to class A Joseph Turian C++ 5 12-30-2005 03:24 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM



Advertisments