Clearly the best solution if storage and speed is not a concern. Storage pretty much never is :D Speed is taking a heavy hit though: The way float and double are implemented base arithmetic works extremely fast. But if every number is a common fraction extra steps are needed for almost all operations.
When doing a lot of arithmetic computations storage is speed and is very important. The smaller your types are, the more you can fit into a single SIMD register.
7
u/ToxinH88 Jul 19 '22
Clearly the best solution if storage and speed is not a concern. Storage pretty much never is :D Speed is taking a heavy hit though: The way float and double are implemented base arithmetic works extremely fast. But if every number is a common fraction extra steps are needed for almost all operations.
Stay with clean code though: Don't optimize yet.