Need to speed up loops - dramatically? Try Duff's Device
Date: Sunday, November 30 @ 14:47:27 CET Topic: Off-Topic
In my journeys this week I came across a neat and nifty little routine known as Duff's Device. Want to see increases of 6 seconds on 5,000,000 iterations? Or 60 seconds on 50,000,000 iterations? You can read about the origin here. See the PHP code and my quick bench marking here.
|
|