If you can't avoid generating garbage, then at least try to reuse it! That's what sync.Pool is for (don't make the map, reuse one).
Can't you read the Redis reply by chunks? 2016. október 27., csütörtök 4:29:01 UTC+2 időpontban 刘桂祥 a következőt írta: > > > In my server many requests need to handle a loop to unmarshal json > strings and I find gc is very frequency > > > > -- 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.