Jason,
Your example does not appear to support your claim.
A benchmark:
package main
import (
"strconv"
"testing"
)
type A struct {
B string
}
func mycode(slice []A) {
slice = slice[1:]
}
func BenchmarkMycode(b *testing.B) {
a := make([]A, 256)
for i := range a {
yihao yang,
If you can't use a better name than Int64Flag_xxIntervalMS then
at least make the code readable. For example,
interval := time.Duration(*Int64Flag_xxIntervalMS) *
time.Millisecond
time.Sleep(interval - time.Since(timeStart))
Peter
On Tuesday, July