this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

internal/core/adt: preallocate CallExpr.evaluate args

│ old │ new │
│ B/op │ B/op vs base │
VetInventory 4.772Gi ± ∞ ¹ 4.765Gi ± ∞ ¹ -0.15% (p=1.000 n=1)

│ old │ new │
│ allocs/op │ allocs/op vs base │
VetInventory 53.88M ± ∞ ¹ 53.42M ± ∞ ¹ -0.85% (p=1.000 n=1)

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I2221ab290c2209381bda5e6793183f6c861fa5bb
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1229421
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>

+1 -1
+1 -1
internal/core/adt/expr.go
··· 1451 1451 c.ci.FromEmbed = saved.FromEmbed 1452 1452 }() 1453 1453 1454 - args := []Value{} 1454 + args := make([]Value, 0, len(x.Args)) 1455 1455 for i, a := range x.Args { 1456 1456 saved := c.errs 1457 1457 c.errs = nil