Skip to content

Commit f1c10e5

Browse files
committed
handler: use values length to preallocate
1 parent 31a6ded commit f1c10e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func getFromForm(values url.Values) *RequestOptions {
4040
query := values.Get("query")
4141
if query != "" {
4242
// get variables map
43-
variables := make(map[string]interface{})
43+
variables := make(map[string]interface{}, len(values))
4444
variablesStr := values.Get("variables")
4545
json.Unmarshal([]byte(variablesStr), &variables)
4646

0 commit comments

Comments
 (0)