You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current approach, we create the same amount of background goroutines as the number of connections that wait periodically to send a PING to the connection. I’m curious to know if using time.AfterFunc instead would enhance memory usage and improve the scheduling for other more important goroutines.
The text was updated successfully, but these errors were encountered:
Currently, we use a long-live goroutine for each connection to do background PINGs:
rueidis/pipe.go
Lines 325 to 327 in 3171947
In the current approach, we create the same amount of background goroutines as the number of connections that wait periodically to send a PING to the connection. I’m curious to know if using
time.AfterFunc
instead would enhance memory usage and improve the scheduling for other more important goroutines.The text was updated successfully, but these errors were encountered: