Click here to Skip to main content
15,886,873 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how can i use the system.managment librery ?? Pin
Dave Kreskowiak13-Mar-09 4:35
mveDave Kreskowiak13-Mar-09 4:35 
GeneralRe: how can i use the system.managment librery ?? Pin
moumen2214-Mar-09 3:08
moumen2214-Mar-09 3:08 
QuestionPrintscreen with Mouse Pin
Zaegra12-Mar-09 10:07
Zaegra12-Mar-09 10:07 
AnswerRe: Printscreen with Mouse Pin
Dave Kreskowiak13-Mar-09 4:14
mveDave Kreskowiak13-Mar-09 4:14 
QuestionQuestion regarding performance and string comparisons Pin
Jon_Boy12-Mar-09 5:00
Jon_Boy12-Mar-09 5:00 
AnswerRe: Question regarding performance and string comparisons Pin
Dave Kreskowiak12-Mar-09 7:13
mveDave Kreskowiak12-Mar-09 7:13 
GeneralRe: Question regarding performance and string comparisons Pin
Jon_Boy12-Mar-09 8:22
Jon_Boy12-Mar-09 8:22 
GeneralRe: Question regarding performance and string comparisons Pin
Jon_Boy13-Mar-09 3:36
Jon_Boy13-Mar-09 3:36 
Just posting the results from my benchmarks in-case anyone else is doing something similar. I had the benchmarks perform with 500,000 iterations with each compare type and then with 2 million each. Benchmarks were performed on numerous machines from a zeon server w/ 16 gig ram to a client box with 512 ram and several in-between.

Fastest to slowest:
1. Regex with RegexOptions.Compiled Or RegexOptions.CultureInvariant Or RegexOptions.IgnoreCase set
2. Contains method
3. LIKE operator
4. Regex with only RegexOptions.Compiled set

#2, 3, 4 would generally end in the order specified above, but not always. #1 always finished as the fastest compare method using regex.ismatch w/ the settings specified.

FYI: I wouldn't use this as the standard for all comparisons done in the future; but rather provided to give you an idea on what options can be used to test against.

#1 seems to be the best performer for this particular routine and the numerous checks being done. Your results may vary as defined by your needs.

Any suggestions, ideas, or 'constructive criticism' are always welcome.

"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

QuestionHow to use spell checker in vb.net Pin
dilipmca0412-Mar-09 2:38
dilipmca0412-Mar-09 2:38 
AnswerRe: How to use spell checker in vb.net Pin
Eddy Vluggen12-Mar-09 4:29
professionalEddy Vluggen12-Mar-09 4:29 
AnswerRe: How to use spell checker in vb.net Pin
Dave Kreskowiak12-Mar-09 7:23
mveDave Kreskowiak12-Mar-09 7:23 
QuestionGridview SqlDataSource SelectCommand Pin
Tomb42112-Mar-09 2:19
Tomb42112-Mar-09 2:19 
AnswerRe: Resolved: Gridview SqlDataSource SelectCommand Pin
Tomb42117-Mar-09 9:24
Tomb42117-Mar-09 9:24 
Questionexport an image from sql 2005 to excel Pin
tw-de12-Mar-09 1:54
tw-de12-Mar-09 1:54 
AnswerRe: export an image from sql 2005 to excel Pin
Eddy Vluggen12-Mar-09 4:36
professionalEddy Vluggen12-Mar-09 4:36 
QuestionHow to use typed datasets with relationships. Pin
steve.borman12-Mar-09 0:48
steve.borman12-Mar-09 0:48 
QuestionPopulate Datagrid control Pin
tatchung12-Mar-09 0:11
tatchung12-Mar-09 0:11 
QuestionPrint Screen Pin
afridy11-Mar-09 20:18
afridy11-Mar-09 20:18 
AnswerRe: Print Screen Pin
Expert Coming11-Mar-09 22:32
Expert Coming11-Mar-09 22:32 
GeneralRe: Print Screen Pin
afridy11-Mar-09 23:24
afridy11-Mar-09 23:24 
QuestionA textbox with squiggly lines in different colours Pin
jinxster11-Mar-09 20:04
professionaljinxster11-Mar-09 20:04 
AnswerRe: A textbox with squiggly lines in different colours Pin
dan!sh 11-Mar-09 20:23
professional dan!sh 11-Mar-09 20:23 
GeneralRe: A textbox with squiggly lines in different colours Pin
Expert Coming11-Mar-09 22:33
Expert Coming11-Mar-09 22:33 
GeneralRe: A textbox with squiggly lines in different colours Pin
dan!sh 11-Mar-09 22:53
professional dan!sh 11-Mar-09 22:53 
GeneralRe: A textbox with squiggly lines in different colours Pin
Expert Coming11-Mar-09 23:03
Expert Coming11-Mar-09 23:03 

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.