Hi there, This is a wired one. Don't mind the way these functions are made, the point is why the time spent running the functions are different. Please find the attachment for the source. Make sure you change the *count* constant to a smaller value otherwise you get out of memory.
It takes a bit longer when the action runs inside a goroutine, as oppose to if the goroutine is defined inside the function. Does anyone can explain what is happening here? Thank you, Arsham -- 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.
main.go
Description: Binary data