apns2 icon indicating copy to clipboard operation
apns2 copied to clipboard

Utilised json.Unmarshal instead of json.NewDecoder

Open moredure opened this issue 3 years ago • 1 comments

Truth be told, json decoder allocates more, it allocates decoder itself and also have logic/buffers related to stream processing which results in slower single JSON record decoding speed. Also reusing responses might be efficient since all responses quite equal in size here.

moredure avatar Apr 03 '22 08:04 moredure

Coverage Status

Coverage remained the same at 100.0% when pulling 693555c439f8d6ffe9a27cad1d0f6e1d98cb2043 on moredure:patch-11 into a09d4b5ea2a812939e148b54abb9c2a517aa2411 on sideshow:master.

coveralls avatar Apr 03 '22 09:04 coveralls