Why need to pay more time when access the array at first time?

This may also depend on your operating system. Some operating systems are lazy about actually allocating pages of memory until you write to those pages.

3 Likes