3 ms·
Seems inefficient to create a new timer per connection, no? t := time.NewTicker(pingPeriod) Maybe if you hold all of the connections in one array and create o
by arrty88 11y ago
Seems inefficient to create a new timer per connection, no?
t := time.NewTicker(pingPeriod)
Maybe if you hold all of the connections in one array and create one timer for the ping, things would be faster.
Curious how this compares to netty...