Thanks guys for the cogent clarifications..I will now forget  about
converting to float32 on 64-bit CPUs

I'm in the process of converting my often-used C-code apps to Go because I
see tremendous advantages of Go vs C.

I've been using C,C++ for many years and only recently discovered Go...
My Go knowledge is 100% self-taught and entirely based on Go web docs,
tutorials, blogs etc
A good doc on "C  to Go code conversion",would help me greatly, so if
anyone knows of one, I'd appreciate knowing about it
I'm somewhat reluctant to use software based conversion

On Mon, Apr 22, 2019 at 8:55 AM Marvin Renich <m...@renich.org> wrote:

> * lgod...@gmail.com <lgod...@gmail.com> [190421 21:56]:
> > ?? On 64-bit CPUs does anyone have any experience comparing the run-time
> > speed of float64 based calculations vs float32 ?
> >
> > Some of my C-code when translated to Go-code seems to run noticeably
> > slower, so I'm wondering if I can speed things up by converting float
> vars
> > to float32 vs float64
>
> I would be more suspicious of the C-to-Go conversion than float32 vs
> float64.  While Go has similarities to C, rewriting in Go with its
> strengths and weaknesses in mind will produce much better code all
> around (performance and maintainability).
>
> ...Marvin
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/3Io9xRmqAWM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.

Reply via email to