Comments by "Anony Mousse" (@anon_y_mousse) on "arrays are weird" video.
-
2
-
1
-
1
-
@sergiitk When you consider that you have to issue a separate instruction to store the index in a register, then decrement it, then either use lea then mov, or just mov, to read from the memory, it adds overhead. You say negligible, okay, but then process a list of a million elements and maybe you'll start to appreciate how much overhead it costs you. If you're curious as to why you wouldn't just use lea then mov, without the other junk, you might be dealing with object sizes that aren't a power of two, or are too large to be handled in that way with lea.
1
-
1
-
1
-
1