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 ?
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 ?
Comment