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

When you store a value that will be reused, like in an array of points, if every time you walk the array multiplying by a constant, you should seek to store values in such a way that it does not need that treatment. If you are taking sin and cos each time through (presumably, added to some angle), it should be pre-multiplied for the fastest implementation of sin and cos available.


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

Search: