crazy-cpu
crazy-cpu
有个问题哈,事先知道slice长度的情况下最好先预设长度会比不预设快,但是实际我benchmark测试结果如下(golang 1.18),结果恰恰相反,这是怎么回事? goos: windows goarch: amd64 pkg: demo cpu: Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz BenchmarkSlice1-6 181 6142071 ns/op BenchmarkSlice2-6 150 7996002 ns/op PASS ok demo 3.832s 代码如下: ``` func...

today,I try to fill "rtu://COM7" to URL field, it works. I can''t explain this situation,but anyway, this problem is solved.thank you.