2 ms·
Those polls sit suspended for quite a long time. I can’t imagine it moves the needle at all on battery life. Just open reddit and it fires off more network requ
by Gigachad 3y ago
Those polls sit suspended for quite a long time. I can’t imagine it moves the needle at all on battery life. Just open reddit and it fires off more network requests than an entire day long polling.
The timing also isn’t fixed. It isn’t like you only receive data on the poll interval. The request finalises when data comes in and a new one is created instantly. So I can’t imagine there being more than a second delay for receiving messages which is entirely acceptable for the use case.
If nothing is happening, you’d only be making a request every couple of minutes, but in an active chat it’s perfectly capable of making them continuously. And for mobile, it isn’t long polling while the app is closed, it’s using the regular push notifications system.