serializing a class & performance -- advice?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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



    Jason Shohet Guest

  2. Similar Questions and Discussions

    1. Serializing objects?
      I want my web service to return an actual object to the caller. I assume that my object must somehow be serializable, but not sure. What do I need...
    2. performance and style advice requested
      I'm trying to learn some Ruby, so I want to write some Ruby code, starting with my usual favourite fun field -- combinatorial arithmetic related to...
    3. [OT] Aesthetics of @ and $; [Was: performance and style advice requested]
      On Monday, September 15, 2003, at 05:15 PM, Nikolai Weibull wrote: lol. Aesthetically, I prefer @ to $. One is circular, the other is...
    4. [OT] 0! [WAS: performance and style advice requested]
      Mark Wilson wrote: Well either that or ZERO!, NONE!, I mean it! Seems that that's what I find myself shouting at my 2 year old anyway. Scott
    5. [OT] 0! [WAS: performance and style advice requested]
      0! represents the number of possible permutations of 0 elements, which is 1. See: http://mathworld.wolfram.com/Factorial.html Regards, ...
  3. #2

    Default Re: serializing a class & performance -- advice?

    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    " Jason Shohet" <ash477@hotmail.com> wrote in message
    news:ek08q6dVDHA.1912@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
    >
    >
    >

    S. Justin Gengo Guest

  4. #3

    Default Re: serializing a class & performance -- advice?

    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


    Jason Shohet Guest

  5. #4

    Default Re: serializing a class & performance -- advice?

    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    " Jason Shohet" <ash477@hotmail.com> wrote in message
    news:eoKuOdeVDHA.2268@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
    >
    >

    S. Justin Gengo Guest

  6. #5

    Default Re: serializing a class & performance -- advice?

    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" <ash477@hotmail.com> wrote in message
    news:ek08q6dVDHA.1912@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
    >
    >
    >

    bruce barker Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139