Framework 2.0 array redim unsatisfactory performance
- From: "Tom Jastrzebski" <tom@xxxxxxx>
- Date: Tue, 09 Aug 2005 01:38:44 GMT
Hello,
I was just testing VB.Net on Framework.Net 2.0 performance when I run into
the this problem.
This trivial code attached below executed hundreds, if not thousand times
faster in VB 6.0 than in .Net environment, under VS 2005 Beta 2. Does anyone
have any idea whether this will be addressed in the final release?
Thanks,
Tomasz
Public Sub Main()
Dim foos() As Long
Dim n As Long
n = 100000
Dim i As Long
For i = 1 To n
ReDim Preserve foos(i)
foos(i) = i
Next i
Debug.Print(foos(1000))
End Sub
.
- Follow-Ups:
- Re: Framework 2.0 array redim unsatisfactory performance
- From: Jay B. Harlow [MVP - Outlook]
- Re: Framework 2.0 array redim unsatisfactory performance
- Prev by Date: RE: Preventing user from typing into a combo box
- Next by Date: Trace dll functions
- Previous by thread: Size the Help App
- Next by thread: Re: Framework 2.0 array redim unsatisfactory performance
- Index(es):
Relevant Pages
|
Loading