#golang defer statements got faster in Go 1.13 and got much faster just now, for Go 1.14:
"cmd/compile, cmd/link, runtime: make defers low-cost through inline code and extra funcdata"
https://go-review.googlesource.com/c/go/+/190098
-
-
I see, you’re relying on const prop to get rid of the deferBits checks. The problem with that approach it that all the defers share the same bitfield, so const prop will miss optimizations (unless you have some of the fancy bit-sensitive stuff LLVM has).
- 1 more reply
New conversation -
-
That's basically what it does now.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.