
22 Mar
2004
22 Mar
'04
6:03 p.m.
On Sunday 21 March 2004 6:31 am, Sven Panne wrote:
I wrote:
[...] It runs with 7162 FPS now, which is only 0.03% slower than the C version! :-)
A small note: After a hint from SimonM, I've just made some minor performance tweaks to the OpenGL package (making some constructor fields strict and letting GHC unbox them automatically). The Haskell version is now *exactly* as fast as the C version.
I ran it on slow hardware, and got faster (just slightly) frame rates in Haskell than in C. All with the new version having 20% less code than C. Shawn