web service performance issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hilel_d

    web service performance issue

    I noticed that each call to a web service method creates a new instance of
    the web service class by calling its constructor. As I was not aware of that
    at the time the code was written I included in the constructor an
    initialization procedure that prepared the data for all the web service
    methods.

    This situation may result in a significant degradation in performance, for
    example when a method that does not require initialization at all is called.
    The obivous solution is to initialize per method.

    Is this true or am I wrong ?

  • Bala

    #2
    RE: web service performance issue

    yes. it preferrable to have "per method" initialization.

    Bala

    --
    The Clipper


    "hilel_d" wrote:
    [color=blue]
    > I noticed that each call to a web service method creates a new instance of
    > the web service class by calling its constructor. As I was not aware of that
    > at the time the code was written I included in the constructor an
    > initialization procedure that prepared the data for all the web service
    > methods.
    >
    > This situation may result in a significant degradation in performance, for
    > example when a method that does not require initialization at all is called.
    > The obivous solution is to initialize per method.
    >
    > Is this true or am I wrong ?
    >[/color]

    Comment

    Working...