|
|
|
|
|
by vvanders
3926 days ago
|
|
Kinda missing the point of C++ by using a linked-list. If you're going to spend the time to implement an algorithm in C++ at least take the time to make it cache aware. Otherwise it's not really surprising when the performance is the same when you're doing the exact same thing. Would be curious to see what the performance looks like with a tightly packed scene and static dispatch on a discrete number of primitives instead of using virtual functions. |
|
It seems like the listed OCaml program has a default level of 9 where as the C++ one uses 6?
Times using original listing (minus print stmts):
Time after changing the 9 in the ocaml program to a six: Seems like C++ has a good edge. Above was ran on a 64 bit machine.