* lgod...@gmail.com <lgod...@gmail.com> [190422 01:57]: > I note that this issue has been dealt with in a previous post > https://groups.google.com/forum/#!topic/golang-nuts/n12khle-mlY > The gist of which seems to suggest that 32-bit is faster than 64
That thread was specific to integer remainder (%) and is irrelevant to any other integer operation and completely irrelevant to floating point. There was also no mention of architecture, which will also influence the result. On the amd64 architecture, the FPU operates internally on 10-byte floating point values, and there is a conversion when loading and storing both 4-byte and 8-byte floats. If performance is important in the part of your app that is doing floating point manipulation, profile your app. Write that part of the app so that you can easily change between float32 and float64, and profile both cases. Micro benchmarks can give you some ideas, but for real answers, you need to test in situ. ...Marvin -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.