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:
@@ -18,7 +18,7 @@ type MemoryService struct {
|
||||
|
||||
func NewMemoryService() *MemoryService {
|
||||
return &MemoryService{
|
||||
items: make(map[string][]Item, 0),
|
||||
items: make(map[string][]Item),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user