apns2
apns2 copied to clipboard
Utilised json.Unmarshal instead of json.NewDecoder
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.