Re: For vs. For Each
"Fredrik Wahlgren" <fredrik.p.wahl gren@mailbox.sw ipnet.se> wrote in
news:##fpK$rEFH A.228@TK2MSFTNG P15.phx.gbl:[color=blue]
> Makes me wonder if there are any other gotchas like this.[/color]
This is well known. Its because many (but not all) list type items are
maintained internally without an index (or other, such as linked items) and
the for loop requires access by index, in which such structures access by
index is slow.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
Empower ASP.NET with IntraWeb
"Fredrik Wahlgren" <fredrik.p.wahl gren@mailbox.sw ipnet.se> wrote in
news:##fpK$rEFH A.228@TK2MSFTNG P15.phx.gbl:[color=blue]
> Makes me wonder if there are any other gotchas like this.[/color]
This is well known. Its because many (but not all) list type items are
maintained internally without an index (or other, such as linked items) and
the for loop requires access by index, in which such structures access by
index is slow.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
Empower ASP.NET with IntraWeb
Comment