Administrator
VB.NET Forum Admin
- Joined
- Jun 3, 2004
- Messages
- 1,462
- Programming Experience
- 10+
Calling all analytical .NET gurus that like to get the most out of .NET performance!
I've been doing some tests to see what the fastest way is to get a "dataset" of data via web services. Take an example DataSet containing 1,000 rows (or more if you want) then try every way you can think of to transfer it from your server to your client. Use the StopWatch class to measure the elapsed milliseconds in your test (ms is sufficient) and see which delivery method gives you the best speed.
I've been experimenting with retrieving plain strongly typed datasets, byte arrays, compressed byte arrays (DeflateStream class), then also throwing in some encryption and compression again and seeing what that brought.
My initial tests with smaller datasets concluded that the strongly typed dataset was fastest! Faster even than a compressed byte array. Granted, all web services are using my custom IHTTPHandler also employing gzip/deflate compression on every call, so the DataSet effectively is getting HTTP compression to help it along. I haven't tried larger datasets yet.
So for those interested, let's see if we can determine and/or come up with a way to deliver the FASTEST datasets from .NET 2.0.
No restrictions, see what you come up with!
I've been doing some tests to see what the fastest way is to get a "dataset" of data via web services. Take an example DataSet containing 1,000 rows (or more if you want) then try every way you can think of to transfer it from your server to your client. Use the StopWatch class to measure the elapsed milliseconds in your test (ms is sufficient) and see which delivery method gives you the best speed.
I've been experimenting with retrieving plain strongly typed datasets, byte arrays, compressed byte arrays (DeflateStream class), then also throwing in some encryption and compression again and seeing what that brought.
My initial tests with smaller datasets concluded that the strongly typed dataset was fastest! Faster even than a compressed byte array. Granted, all web services are using my custom IHTTPHandler also employing gzip/deflate compression on every call, so the DataSet effectively is getting HTTP compression to help it along. I haven't tried larger datasets yet.
So for those interested, let's see if we can determine and/or come up with a way to deliver the FASTEST datasets from .NET 2.0.
No restrictions, see what you come up with!