3D array cpu access benchmark
Par Arthy, dimanche 30 septembre 2007 à 15:10 :: General :: #28 :: rss
Here is an as2 benchmark between 2 forms of 3Darray object.
I had to develop a 3DArray object, but i wondered what was the best model for cpu access.
I wrote 2 models : array[a][b][c] and array[a].content[b][c]I thought that the first model would be much difficult for the cpu to access and it would prefer the second form.
And i was wrong :), the first form is reaaaallly faster as the benchmark proves it :
Hope this benchmark will help some of you...
Commentaires
1. Le lundi 17 mars 2008 à 10:13, par Maman
2. Le lundi 17 mars 2008 à 11:05, par Arthy
3. Le lundi 28 juillet 2008 à 17:40, par juegos
Ajouter un commentaire