mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
console: preallocate slice capacities
This commit is contained in:
parent
94579932b1
commit
9404205354
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ func (b *bridge) Send(call jsre.Call) (goja.Value, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute the requests.
|
// Execute the requests.
|
||||||
var resps []*goja.Object
|
resps := make([]*goja.Object, 0, len(reqs))
|
||||||
for _, req := range reqs {
|
for _, req := range reqs {
|
||||||
resp := call.VM.NewObject()
|
resp := call.VM.NewObject()
|
||||||
resp.Set("jsonrpc", "2.0")
|
resp.Set("jsonrpc", "2.0")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue