Peter

Results 5 comments of Peter

@spacewander Hi, could you help to review this? thanks.

Yeah, so I wonder if we can limit the processes. ``` nProcs=12 # hardcode, can be replaced to nproc --all nJobs="\j" for ((i=0; i= nProcs )); do wait -n done...

since the PR is merged, close this issue.

想问一下, sync.Pool 那段代码, quiz6, 是因为申请内存的频率和大小与GC的不一样吗?还是有其他的含义. 我改了原代码, 能看到内存占用比较低(有突刺). 基于 go1.13.1 ``` package main import ( "bytes" "fmt" "runtime" "sync" "time" ) var pool = sync.Pool{New: func() interface{} { return new(bytes.Buffer) }}...

如果有人对sync.Pool那个例子感到困惑, 看看这个 https://github.com/golang/go/issues/23199