Re: I just spent several hours shaving a total of 250 milliseconds off my application by Tom
Tom
Fri Oct 31 17:03:30 CST 2003
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:eyQOtu9nDHA.1764@tk2msftngp13.phx.gbl...
> Tom Siltwater wrote:
> > building variable width/DB tables etc using getrows instead of
> > movenext. Performance is a major concern as this app requires SSL.
> >
> > My question is, when does it become more about the challenge of
> > building faster apps vs. getting the job done??? If my calculations
> > are correct, I just added an extra 10,000+ possible hits within a 12
> > hour day or so.. an extra 10,000 hits???!!! What percentage of
> > applications do you think will ever see this kind of traffic?
> >
> > Is this insane? If this app ever gets maxed out, will my end users
> > ever realistically notice a difference?
> >
> >
> > TIA
>
> I don't get it. Why do you say it took so much longer using a getrows
array
> vs a recordset loop?
>
> Recordset loop:
>
> if not rs.eof then
> Do until rs.eof
> rs.movenext
> loop
> else
> 'handle no-records event
> end if
> rs.close:set rs=nothing
> cn.close:set cn=nothing
>
> GetRows array loop:
>
> if not rs.eof then arResults-rs.getrows
> rs.close:set rs=nothing
> cn.close:set cn=nothing
> if isarray(arResults) then
> for i = 0 to ubound(arResults,2)
> next
> else
> 'handle no-records event
> end if
>
>
> 9 lines vs 9 lines. Where is the increase in development time?
>
> Bob Barrows
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>
It's actually just over a hundred lines of code. I'm using a single function
to dynamically build tables which takes 10 different arguments for column
widths, height, table headers, anchor tags etc etc.. just about every page
within the site will use this function now.