On Friday, 28 October 2016 07:36:20 UTC+2, Erik Dubbelboer wrote:
>
> Try https://github.com/pquerna/ffjson to improve speed and reduce garbage
> generation. This in combination with sync.Pool will increase your
> throughput by A LOT.
>
Also try out http://ugorji.net/blog/go-codec-primer - depen
Try https://github.com/pquerna/ffjson to improve speed and reduce garbage
generation. This in combination with sync.Pool will increase your
throughput by A LOT.
On Thursday, October 27, 2016 at 10:29:01 AM UTC+8, 刘桂祥 wrote:
>
>
> In my server many requests need to handle a loop to unm
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 ne