Re: Want to reduce download time
From: Chris Barber (chris_at_blue-canoe.co.uk.NOSPAM)
Date: 04/18/04
- Next message: Woody: "ok, ms sock puppet here"
- Previous message: Roland Hall: "Re: Interdev: DB Update rights conflict GUI File Update"
- In reply to: Manisha: "RE: Want to reduce download time"
- Next in thread: Manisha: "RE: Want to reduce download time"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 18 Apr 2004 14:03:07 +0100
See the following short thread for a VBScript and VB class that achieves the
string builder functionality using arrays:
Normal concatenation using '&' is *very* slow and if you do a lot of it will
reduce your scripts to a crawl. Using the array method is approx. 100 times
faster for normal usage and has a linear response time (concatenation
degrades dramatically as the string grows).
Hope this helps.
Chris.
"Manisha" <anonymous@discussions.microsoft.com> wrote in message
news:680EC2A9-ED64-49B2-9E87-9E330213F46E@microsoft.com...
When I mean to say big means lots of Data is being pulled from database and
client wants to represent it in a tabular format (Day wise for whole 30
days). ok some more info which I got ...
client has given me one script in VB. He said that in one of their some
previous project (which was in VB) also they faced the same problem and they
said the perfirmance was increased after using this new code.
I went through it, what they are doing is making use of Dictionary objects
in together with normal Array (this array is concate of all o/p from
Dictionary object), checking the UBound of this array if exceeds then Redim
new additional 50. Something like this....Dictionary objects are used for
HTML tags such as <table><tr><td>...putting each like in Dictionary.
I need to understand what exact effect this might have on speed ? Is it
because they are not using normal arrays and Dictionary objects are faster ?
But if I make use of direct loops inside ASP pages without using arrays then
what will happen - whether this will be more faster?
regards
Manisha
- Next message: Woody: "ok, ms sock puppet here"
- Previous message: Roland Hall: "Re: Interdev: DB Update rights conflict GUI File Update"
- In reply to: Manisha: "RE: Want to reduce download time"
- Next in thread: Manisha: "RE: Want to reduce download time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|