You know what? One more great talk from @GopherCon by Agniva De Sarker about Bound check elimination in #golang
Look at the examples, they're very explanatory!
https://www.youtube.com/watch?v=5toTS6kSWHA
Look at the examples, they're very explanatory!
https://www.youtube.com/watch?v=5toTS6kSWHA
YouTube
GopherCon 2020: Common Patterns for Bounds Check Elimination - Agniva De Sarker
Bounds checks are a necessary evil. If you donโt have them, you lose memory safety. If you have them, you hurt performance. Is it possible to have the best of both worlds? Why, yes! Watch this talk to learn more.
Back to string interning in #golang by
twitter.com/mdlayher
https://mdlayher.com/blog/unsafe-string-interning-in-go/
twitter.com/mdlayher
https://mdlayher.com/blog/unsafe-string-interning-in-go/
Allocations, size classes in #golang by twitter.com/davecheney
https://dave.cheney.net/2021/01/05/a-few-bytes-here-a-few-there-pretty-soon-youre-talking-real-memory
https://dave.cheney.net/2021/01/05/a-few-bytes-here-a-few-there-pretty-soon-youre-talking-real-memory
Neat #golang trick how to pack multiple slice allocations into one (or less than in a naive way), thanks to twitter.com/tvii for showing this!
https://vladimir.varank.in/notes/2019/09/go-http-headers/
(slices are amazing)
https://vladimir.varank.in/notes/2019/09/go-http-headers/
(slices are amazing)
Hey #gophers ! #golang compiler and runtime meeting notes are public!
Subscribe and follow all the new and amazing things happening in Go ๐๐๐
https://github.com/golang/go/issues/43930
Subscribe and follow all the new and amazing things happening in Go ๐๐๐
https://github.com/golang/go/issues/43930
GitHub
Go compiler and runtime meeting notes ยท Issue #43930 ยท golang/go
Google's Go compiler and runtime team meets periodically (roughly weekly) to discuss ongoing development of the compiler and runtime. While not open to the public, there's been desire by th...
New #golang GC Pacer desing by twitter.com/mknyswe
https://go.googlesource.com/proposal/+/a216b56e743c5b6b300b3ef1673ee62684b5b63b/design/44167-gc-pacer-redesign.md
Still at proposal phase, but worth to read https://github.com/golang/go/issues/44167
https://go.googlesource.com/proposal/+/a216b56e743c5b6b300b3ef1673ee62684b5b63b/design/44167-gc-pacer-redesign.md
Still at proposal phase, but worth to read https://github.com/golang/go/issues/44167
Cool stuff: buffer pool in #golang based on databases.
Also a neat part: CLOCK Replacement algorithm (read as better LRU, LFU policy)(however better can be argued :)
Thank you twitter.com/brunocalza !
https://brunocalza.me/how-buffer-pool-works-an-implementation-in-go/
Also a neat part: CLOCK Replacement algorithm (read as better LRU, LFU policy)(however better can be argued :)
Thank you twitter.com/brunocalza !
https://brunocalza.me/how-buffer-pool-works-an-implementation-in-go/
Better IP addr in #golang by twitter.com/tailscale (and twitter.com/bradfitz)
The article isnโt about performance only, but the criteria for a new type are well described https://tailscale.com/blog/netaddr-new-ip-type-for-go/
The article isnโt about performance only, but the criteria for a new type are well described https://tailscale.com/blog/netaddr-new-ip-type-for-go/
Go compiler and runtime meeting notes (https://github.com/golang/go/issues/43930)
> We discussed how to address amd64 per-architecture optimizations. Haswell specific optimizations have shown large improvements in certain workloads, and it might be worth providing for these wins. Discussion will likely continue.
Also see:
cmd/compile: add GOAMD64 architecture variants (https://github.com/golang/go/issues/25489)
https://github.com/golang/go/issues/25489
> We discussed how to address amd64 per-architecture optimizations. Haswell specific optimizations have shown large improvements in certain workloads, and it might be worth providing for these wins. Discussion will likely continue.
Also see:
cmd/compile: add GOAMD64 architecture variants (https://github.com/golang/go/issues/25489)
https://github.com/golang/go/issues/25489
GitHub
Go compiler and runtime meeting notes ยท Issue #43930 ยท golang/go
Google's Go compiler and runtime team meets periodically (roughly weekly) to discuss ongoing development of the compiler and runtime. While not open to the public, there's been desire by th...