mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-04 16:32:41 +08:00
perf: slightly optimize the value`s type of map to save memory space in file redis/server/server.go
Limited ability, hope to make it better~
This commit is contained in:
@@ -61,7 +61,7 @@ func (h *Handler) Handle(ctx context.Context, conn net.Conn) {
|
||||
}
|
||||
|
||||
client := connection.NewConn(conn)
|
||||
h.activeConn.Store(client, 1)
|
||||
h.activeConn.Store(client, struct{}{})
|
||||
|
||||
ch := parser.ParseStream(conn)
|
||||
for payload := range ch {
|
||||
|
Reference in New Issue
Block a user