Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Which is faster??? Type or Array

Author
Message
Gav_b_uk
20
Years of Service
User Offline
Joined: 18th Mar 2004
Location: Midlands, UK
Posted: 23rd Apr 2004 03:24
Here's two example of a similar thing:

Using type:


Using Array:




Which of these will actually run faster in terms of processor time??? i.e. Which is more efficient???
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 23rd Apr 2004 03:59 Edited at: 23rd Apr 2004 04:00
well youre using an array in both examples so how would you test it?
I guess the one that only uses an array, and not the arrayed-type would be faster but I have no way to confirm that

also, just an fyi, arrays are zero based so instead of referring to 10 items with 2 fields both of your examples are building 11 x 3


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!

Login to post a reply

Server time is: 2024-09-22 06:30:54
Your offset time is: 2024-09-22 06:30:54