On Thursday, March 25, 2021 at 4:45:31 PM UTC-7 Kurtis Rader wrote:
> On Thu, Mar 25, 2021 at 4:21 PM 'Isaac Gouy' via golang-nuts wrote: > >> compile-time-constant program >> int 3m3.225s >> int32 2m43.404s >> int64 3m3.240s >> >> run-time-value program >> int 18m20.737s >> int32 6m57.880s >> int64 18m21.020s >> >> Hmmm what explains the difference for the compile-time-constant program >> between int and explicit int32 ? >> > > Hint #1: Notice anything interesting about the relationship of the int and > int64 times? > > Hint #2: https://golang.org/ref/spec#Numeric_types > >From #Numeric_types <https://golang.org/ref/spec#Numeric_types> uint either 32 or 64 bits int same size as uint Well I figured int was going to be either 32 or 64 bits :-) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/37d1b3d1-68ca-463a-8eb5-a878bb4a8925n%40googlegroups.com.