Telegram Web
- #golang PGO will be auto by default in Go 1.21

- First PGO result from a google-internal app yields -2.75% CPU

- We might get better regalloc (registry allocator) (5% CPU gain)

Do you have any success stories by running PGO ? Please share!

Source: https://github.com/golang/go/issues/43930#issuecomment-1468713261
runwww.tgoop.com/cgo: store M for C-created thread in pthread key

BenchmarkCGoInCThread results:
1. it's 28x faster, 3395 ns/op -> 121 ns/op, macOS & Intel i7-9750H CPU

2. it's 6.5x faster, 1495 ns/op -> 230 ns/op, Linux & Intel Xeon CPU E5-2630

https://go-review.googlesource.com/c/go/+/392854 #golang
Great #golang guides are coming! At least might be. From https://github.com/golang/go/issues/43930#issuecomment-1487438236
We are now using Swissmap, a new @golang hash table based on SwissTable that is faster and uses less memory than Golang's built-in map.

This blog by @AndyArt58355407 covers the motivation, design, and implementation of SwissMap for Dolt.

https://dolthub.com/blog/2023-03-28-swiss-map/
Allow more inlining of functions that construct closures #golang

> This will help significantly with the performance of the functions <...>, which have a somewhat complicated nesting of closures with a performance-critical fast path.

https://go-review.googlesource.com/c/go/+/482356
2025/07/10 08:44:26
Back to Top
HTML Embed Code: