Re: [go-nuts] Mutex contention in sql.Close()

2023-12-13 Thread robert engels
It is contending with sql.rows.awaitDone(). My guess is that when you close rows it has to wait for db acknowledgement - that this is a false positive based on wall time and not cpu time - that the mutex is waiting for the cleanup operation to complete. > On Dec 13, 2023, at 1:25 PM, Joshua

Re: [go-nuts] go build at most 37x slower in 1.21.5 vs 1.19.3

2023-12-13 Thread Def Ceb
The Go blog does indeed say this. > The go tool no longer relies on pre-compiled standard library package archives in the $GOROOT/pkg directory, and they are no longer shipped with the distribution, resulting in smaller downloads. Instead, packages in the standard library are built as needed

[go-nuts] Re: go build at most 37x slower in 1.21.5 vs 1.19.3

2023-12-13 Thread 'TheDiveO' via golang-nuts
IIRC the stdlib isn't delivered precompiled anymore since 1.20. You should make sure to have layer caching in place in case you want to tune your pipelines. You can do a "go build std" IIRC. On Wednesday, December 13, 2023 at 4:40:21 PM UTC+1 Lib Martinito wrote: > > [image: Screenshot

[go-nuts] [gollvm] why gollvm place llvm.statpoint in pad basicblock

2023-12-13 Thread Axis Dong
hi everyone I am a newcomer of gollvm. And I spend some time on investigating about how gollvm works. When I read the code of llvm, I found something wired. Why gollvm place llvm.statpoint in pad basicblock? Can we place the llvm.statpoint on the normal basicblok? Thanks in advance David

Re: [go-nuts] slog formatter funcs? (e.g. slog.Infof)

2023-12-13 Thread 'Axel Wagner' via golang-nuts
I believe the intention is that you shouldn't format this, but make `err` an `Attr`. i.e. the philosophy behind structured logging is specifically, not to do formatting, as it produces unstructured data. Whether I'm personally convinced by that philosophy is another question, but I think that's