samsmithnz
Well-known member
I only want to talk about SPEED here, not what some of you (and I of course) perceive as good programming practice.
Im trying to get the BEST performance out of a webservice. The webservice can be called from one client up to 4 or 5 times a second (depending on how fast you can type).
Ill give you a quick background on how this works, so that you understand why it has to be this way. I have a ASP.NET webpage where the user types in a user name. As they type, the text is passed through a web service (using client side javascript), which extracts the information in a SQL Database (using a sp and a like %). This data is then converted into HTML and returned to the client to display in a client side popup menu thingy.
The question I have here is this:
The HTML conversion function is currently sitting in the main webservice asmx file. I was wondering if it wouild be quicker to leave it there or to move it into a class, and create instances of the class everytime I need it.
Id usually go straight ahead and do this, but Im really worried about performance, so thats why Im trying to consider it here, at the expense good programming practice. What is faster? Im currently thinking that leaving it where it is should be slightly faster......
Im trying to get the BEST performance out of a webservice. The webservice can be called from one client up to 4 or 5 times a second (depending on how fast you can type).
Ill give you a quick background on how this works, so that you understand why it has to be this way. I have a ASP.NET webpage where the user types in a user name. As they type, the text is passed through a web service (using client side javascript), which extracts the information in a SQL Database (using a sp and a like %). This data is then converted into HTML and returned to the client to display in a client side popup menu thingy.
The question I have here is this:
The HTML conversion function is currently sitting in the main webservice asmx file. I was wondering if it wouild be quicker to leave it there or to move it into a class, and create instances of the class everytime I need it.
Id usually go straight ahead and do this, but Im really worried about performance, so thats why Im trying to consider it here, at the expense good programming practice. What is faster? Im currently thinking that leaving it where it is should be slightly faster......