1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

Optimize: map or slice initialize allocation size / cap (#1965)

This commit is contained in:
jesse.tang
2022-09-09 20:56:23 +08:00
committed by GitHub
parent b037d11c18
commit 9e8a58bf3b
3 changed files with 44 additions and 43 deletions

View File

@@ -18,7 +18,7 @@ type MemoryService struct {
func NewMemoryService() *MemoryService {
return &MemoryService{
items: make(map[string][]Item, 0),
items: make(map[string][]Item),
}
}