Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Which loop is faster?

Name: Anonymous 2012-01-16 8:59


for (I = 0; I < N; I++)
  for (J = 0; J < M; J++)
    update(Xs[I][J]);

or

for (I = 0; I < N; I++)
  for (J = 0; J < M; J++)
    update(Xs[J][I]);

???

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-01-16 13:11

>>60
Ughhh... I keep forgetting that % isn't the same as % in other programming languages.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-01-16 13:15

>>65
No it isn't! Read the Java Standard. It isn't the same.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-01-16 13:17

>>66
It really isn't. And the fact that you think it is reflects the fact that you don't understand how crap languages like Java work.

Name: Anonymous 2012-01-16 13:19

>>72
Go learn what % is you mental midget.

Name: Anonymous 2012-01-16 13:22

>>74
For reasons that elude me, my coworkers insist on referring to the Java Language Specification as JSP. Anyways, the language specification clearly states that % isn't modulo.

Name: Anonymous 2012-01-16 13:22

>>76
No it isn't you moron.

Name: Anonymous 2012-01-16 13:23

>>76
No, the Java Language Specification clearly states that % isn't  modulo.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List