Loop Performance

Results 1 to 3 of 3

Thread: Loop Performance

  1. #1
    Eric S. Guest

    Default Loop Performance

    Are some loops faster than others?<BR><BR>I user:<BR>while Query.eof = false<BR> ...<BR> Query.MoveNext<BR>wend<BR><BR>I notice that alot of people use:<BR>do while query.eof = false<BR> ...<BR> Query.MoveNext<BR>loop<BR><BR><BR>Is there any differance performance-wise?<BR>Thanks<BR>EHS

  2. #2
    keithadler@hotmail.com Guest

    Default RE: Loop Performance

    There is no difference in the performance of the two statements above. I personally use Do Until ... Loop myself. There are many ways to achieve the same result though. In the end, Loop structure choice is based on personal preferences or internal company standards. I would suggest a Do Until though because I believe if you would use the same syntax as above you would have one less thing to compare in the expression:<BR><BR>Do Until Query.EOF<BR><BR>Loop<BR><BR>instead of ...<BR><BR>Do Until Query.EOF=False<BR><BR>Loop<BR><BR>... the first doesn&#039t require a comparision between Query.EOF and False ... since Query.EOF returns a boolean expression.

  3. #3
    Join Date
    Dec 1969

    Default RE: Loop Performance

    while wend has a memory leak in ASP.<BR><BR>stick to using Do..While

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts