monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,125
- Reaction score
- 149
Hi, is there usually a difference between the following 2 examples in terms of speed?
Code:
var[555][555][555][555] += 1
var[555][555][555][555] += 1
var[555][555][555][555] += 1
var[555][555][555][555] += 1
var[555][555][555][555] += 1
var[555][555][555][555] += 1
Code:
copy = var[555][555][555][555]
copy += 1
copy += 1
copy += 1
copy += 1
copy += 1
copy += 1
var[555][555][555][555] = copy