|
|
|
|
|
by altern
3924 days ago
|
|
I did a qucik and dirty test with levels = 14. # program time change
./ray-ml: 21.46 # Original ocaml
./ray-cpp: 17.63 # Original c++
./ray-cpp-no-dtor: 13.86 # Removed all cleanup, ocaml doesn't do it
./ray-cpp-2: 8.90 # Changed list to vector
./ray-cpp-3: 7.89 # Removed virtual functions
./ray-cpp-4: 5.64 # Preallocated large array for all Groups
|
|
If there's one thing I could teach new CS-grads it's how much your memory access patterns(and cache) really-effing-matter. Everything else is almost noise in comparison.