Click here to Skip to main content
15,909,445 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB and MS Excel Pin
geekgautam4-Jul-11 22:44
geekgautam4-Jul-11 22:44 
AnswerRe: VB and MS Excel Pin
Mycroft Holmes23-Jun-11 22:53
professionalMycroft Holmes23-Jun-11 22:53 
GeneralRe: VB and MS Excel Pin
geekgautam24-Jun-11 8:04
geekgautam24-Jun-11 8:04 
GeneralRe: VB and MS Excel Pin
Dalek Dave26-Jun-11 1:59
professionalDalek Dave26-Jun-11 1:59 
QuestionList(Of Integer) vs. an array (VB.NET 2008) Pin
Steven St. John21-Jun-11 5:45
Steven St. John21-Jun-11 5:45 
AnswerRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List PinPopular
MicroVirus21-Jun-11 7:12
MicroVirus21-Jun-11 7:12 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List Pin
Thomas Krojer21-Jun-11 20:46
Thomas Krojer21-Jun-11 20:46 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List Pin
MicroVirus21-Jun-11 22:06
MicroVirus21-Jun-11 22:06 
I did not test that, as I didn't think from the OP that an array as large as 1,000,000 would be relevant. The ReDim would be slow if needed, but then again it won't be needed much.
Anyway, it'd be the same performance as starting with New List(Of Integer)(1000000), then using Add to add the items, and finally calling TrimExcess() on the list.

You can test all this yourself by writing a very simple test program. I used Now() to get the time before and after the operation and output the difference in milliseconds. Took me no more than 10 minutes to write the entire test program and do the tests.
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List Pin
Thomas Krojer22-Jun-11 0:42
Thomas Krojer22-Jun-11 0:42 
JokeRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List Pin
MicroVirus22-Jun-11 1:03
MicroVirus22-Jun-11 1:03 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List Pin
Thomas Krojer22-Jun-11 2:01
Thomas Krojer22-Jun-11 2:01 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) => Use List Pin
Steven St. John23-Jun-11 11:40
Steven St. John23-Jun-11 11:40 
AnswerRe: List(Of Integer) vs. an array (VB.NET 2008) Pin
AspDotNetDev23-Jun-11 10:16
protectorAspDotNetDev23-Jun-11 10:16 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) Pin
Steven St. John23-Jun-11 11:41
Steven St. John23-Jun-11 11:41 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) Pin
AspDotNetDev23-Jun-11 12:04
protectorAspDotNetDev23-Jun-11 12:04 
QuestionRequest Pin
QASKU20-Jun-11 2:18
QASKU20-Jun-11 2:18 
AnswerRe: Request Pin
Dalek Dave20-Jun-11 13:18
professionalDalek Dave20-Jun-11 13:18 
QuestionHow to show alert when new records added to database in windows application??? Pin
Sanjay Tiwari120-Jun-11 0:10
Sanjay Tiwari120-Jun-11 0:10 
AnswerRe: How to show alert when new records added to database in windows application??? Pin
Wayne Gaylard20-Jun-11 2:12
professionalWayne Gaylard20-Jun-11 2:12 
GeneralTimer Pin
David Mujica20-Jun-11 2:45
David Mujica20-Jun-11 2:45 
QuestionUpgrade VB6 Database to VB10 Pin
Garner T19-Jun-11 11:07
Garner T19-Jun-11 11:07 
AnswerRe: Upgrade VB6 Database to VB10 Pin
RobCroll19-Jun-11 21:11
RobCroll19-Jun-11 21:11 
GeneralRe: Upgrade VB6 Database to VB10 Pin
Garner T20-Jun-11 13:14
Garner T20-Jun-11 13:14 
SuggestionRe: Upgrade VB6 Database to VB10 Pin
ChandraRam20-Jun-11 20:07
ChandraRam20-Jun-11 20:07 
GeneralRe: Upgrade VB6 Database to VB10 Pin
RobCroll21-Jun-11 2:48
RobCroll21-Jun-11 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.