Hello,

I am using a variable to track the no. of bytes written to a file so far. 
Now the fmt.Fprint command returns the bytes written as int. But I am 
thinking of storing the value as a uint64 just to give it some extra space. 
Therefore, I have to do a bytesWritten += uint64(n) to add to the variable.

This code is in the hot path of my application. I was just wondering what 
is the performance hit of the casting and whether there is any better way 
to achieve this ?

Regards,
Agniva

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