Groups | Blog | Home
all groups > asp.net webservices > january 2004 >

asp.net webservices : how keep an array in memory


Trebek
1/30/2004 1:05:20 PM
Have you considered caching the array? Usually this is a good solution if
the data is relatively static. Try playing around with the 'CacheDuration'
and 'BufferResponse' attributes on the web method that is generating this
array if the array is a part of the response. If the array is just used to
perform actions on the request data but isn't being marshalled back to the
caller, consider making it static and calculating it in the application's
load evt. If you do elect to pursue the second option, bare in mind that
static or not, concurrency could be an issue if you altering the contents of
the array in the web service methods.

HTH,
Alex

[quoted text, click to view]

Andras Walz
1/30/2004 6:09:03 PM
Hi there,

I have written a webservice with VB.net and it runs fine. The problem is the
performance.
I am calculating with an array 1000 x 1000 x 5 elements and it take time to
load it into the memory each time i send a request.
Is there a possibility to keep the array?

Thanks

Andreas

Andras Walz
1/30/2004 8:09:58 PM
Thank you, it works fine. I have used the application load because I only
use the array for internal calculations.

Bye

Andreas

"Trebek" <trebek@intheformofaquestion.com> schrieb im Newsbeitrag
news:401a9bee$0$12817$a04e5680@nnrp.fuse.net...
[quoted text, click to view]

AddThis Social Bookmark Button