mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-11 03:30:55 +08:00
perf: pooled connection`s instantiation
- pooled connection: reduce the pressure on the GC to process heap memory objects with high concurrent "connection"
This commit is contained in:
@@ -50,6 +50,8 @@ func (h *Handler) closeClient(client *connection.Connection) {
|
||||
_ = client.Close()
|
||||
h.db.AfterClientClose(client)
|
||||
h.activeConn.Delete(client)
|
||||
|
||||
client.GetConnPool().Put(client)
|
||||
}
|
||||
|
||||
// Handle receives and executes redis commands
|
||||
|
Reference in New Issue
Block a user