Click here to Skip to main content
15,916,417 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Deploying VB.Net Application on laptop Pin
Dave Kreskowiak11-Oct-05 3:42
mveDave Kreskowiak11-Oct-05 3:42 
QuestionCrystal Report [ 8 & 9 ] in VB .NET Pin
asif4ever4u9-Oct-05 23:05
asif4ever4u9-Oct-05 23:05 
QuestionApplication container Pin
matsnas9-Oct-05 22:50
matsnas9-Oct-05 22:50 
AnswerRe: Application container Pin
Dave Kreskowiak10-Oct-05 15:34
mveDave Kreskowiak10-Oct-05 15:34 
GeneralRe: Application container Pin
matsnas10-Oct-05 18:02
matsnas10-Oct-05 18:02 
AnswerRe: Application container Pin
vertig073011-Oct-05 8:50
vertig073011-Oct-05 8:50 
Generallogical difference Pin
himanshu_softin9-Oct-05 22:47
himanshu_softin9-Oct-05 22:47 
GeneralRe: logical difference Pin
jo0ls10-Oct-05 10:37
jo0ls10-Oct-05 10:37 
The addition assignment operator += was probably just added as it is shorter and looks cooler. It's used in other languages and I read somewhere theat in C it is marginally more efficient once compiled than using x=x+n. So to see if the is a difference in vb.net I ran 500 passes through:
For i As Double = 0 To 100000000
For j As Double = 0 To 1000000000
i += rand.Next(0, 100)
j += rand.Next(0, 100)
j += rand.Next(0, 100)
i += rand.Next(0, 100)
Next j
Next i

(and then did it for the i = i + blah version)

and averaged the result.

results:
x+=n : 3.7274s
x=x+n : 3.7071s

I doubt the difference is significant, it probably needs more passes. It ran one pass through one version, then one pass through the other version, repeatedly, so the difference wasn't due to an external influence.
GeneralRe: logical difference Pin
dave@ennead11-Oct-05 20:34
dave@ennead11-Oct-05 20:34 
GeneralRe: logical difference Pin
Steve Pullan10-Oct-05 13:57
Steve Pullan10-Oct-05 13:57 
GeneralRe: logical difference Pin
Dave Kreskowiak11-Oct-05 7:18
mveDave Kreskowiak11-Oct-05 7:18 
Questionhttp Request and Response Pin
ybasha9-Oct-05 16:00
ybasha9-Oct-05 16:00 
AnswerRe: http Request and Response Pin
Anonymous9-Oct-05 16:34
Anonymous9-Oct-05 16:34 
GeneralRe: http Request and Response Pin
ybasha9-Oct-05 17:09
ybasha9-Oct-05 17:09 
Questionwin32.Registry Pin
militiaware9-Oct-05 14:52
militiaware9-Oct-05 14:52 
AnswerRe: win32.Registry Pin
Christian Graus9-Oct-05 16:05
protectorChristian Graus9-Oct-05 16:05 
AnswerRe: win32.Registry Pin
Anonymous9-Oct-05 16:06
Anonymous9-Oct-05 16:06 
QuestionTextbox KeyDown Overrides Pin
medicenpringles9-Oct-05 11:19
medicenpringles9-Oct-05 11:19 
AnswerRe: Textbox KeyDown Overrides Pin
Anonymous9-Oct-05 16:02
Anonymous9-Oct-05 16:02 
GeneralRe: Textbox KeyDown Overrides Pin
medicenpringles9-Oct-05 16:17
medicenpringles9-Oct-05 16:17 
GeneralRe: Textbox KeyDown Overrides Pin
Anonymous9-Oct-05 17:01
Anonymous9-Oct-05 17:01 
GeneralRe: Textbox KeyDown Overrides Pin
medicenpringles10-Oct-05 5:51
medicenpringles10-Oct-05 5:51 
Questionproblem on making an exe Pin
saood swar9-Oct-05 11:18
saood swar9-Oct-05 11:18 
AnswerRe: problem on making an exe Pin
Steve Pullan9-Oct-05 14:08
Steve Pullan9-Oct-05 14:08 
QuestionVb.Net Smooth Progress Bar Pin
sumod_madhavan9-Oct-05 9:50
sumod_madhavan9-Oct-05 9:50 

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.