mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
use json unmarshal/marshal from jsoniter in hotpaths (#12269)
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/minio/madmin-go"
|
||||
"github.com/minio/minio/cmd/config"
|
||||
"github.com/minio/minio/cmd/logger"
|
||||
@@ -244,6 +245,7 @@ func (iamOS *IAMObjectStore) loadIAMConfig(ctx context.Context, item interface{}
|
||||
}
|
||||
}
|
||||
}
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
return json.Unmarshal(data, item)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user