So essentially I have a program that loops over and over. I have noticed that the first loop iteration is super duper slow, taking over 12000 nanoseconds. Then the time taken per iteration suddenly drops down to only 1000 nanoseconds at the third iterations and keeps steady afterwards. Then at around 200th iteration, the time suddenly dropped again to only 180 nanoseconds, and is very steady afterwards. No matter how many iterations I let the loop do, the behavior is the same. Is this a hardware thing or software thing? Is there any way possible that I modify my code to have the program gain full speed since the first iteration?
Aucun commentaire:
Enregistrer un commentaire