Agreed with the general point, but it doesn't apply here. Memory locality can be objectively measured (e.g. with last level cache miss counters), and parent comment is correct besides -- it's usually plain to see in the code.
There are mysterious boogiemen in performance optimization, but this isn't really one of them.
There are mysterious boogiemen in performance optimization, but this isn't really one of them.