Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It was a hack. I knew the C compiler could do these optimizations at compile-time that would take me longer to implement at run-time and would probably introduce mistakes. I could well have used the C-processor, but the parameters needed to be taken from a file for each program.

The simulation was run about 100 times with different parameters. Instead of taking about an hour each they instead took about 12 minutes each, with the only difference being baking in all the parameters as constants and letting GCC do the rest.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: