vincentnl
Freshman
Hi,
I am wondering, whether I should compact my code more in general.
Will the first block run faster than the second? or will the compiler create speedequivalent code?
codeblock 1
int i = 3
int j = 6
point d = new point(i,j)
SomeMethod(d)
Or should I sacrifice some readability and compact this to
codeblock2
SomeMethod( new Point(3,6)
I am wondering, whether I should compact my code more in general.
Will the first block run faster than the second? or will the compiler create speedequivalent code?
codeblock 1
int i = 3
int j = 6
point d = new point(i,j)
SomeMethod(d)
Or should I sacrifice some readability and compact this to
codeblock2
SomeMethod( new Point(3,6)