Just posting links to a few older bits I wrote, which might be helpful to know when you're trying to speed up your sketches. This one is about using fixed precision numbers instead of floats. Here's also more general comparison of number types and different algebra modes.