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

This is happening because the first time you touch the memory it is being brought into your CPUs cache. Julia isn’t doing anything different here.

15 Likes