Thanks to the new-ish mid-stack inliner, you can make Go APIs that return a new value without forcing a heap allocation! func X25519(scalar, point []byte) ([]byte, error) { var dst [32]byte return x25519(&dst, scalar, point) }https://blog.filippo.io/efficient-go-apis-with-the-inliner/ …
Replying to @FiloSottile
Am I doing it right? :) https://go-review.googlesource.com/c/go/+/195980
8:36 AM - 19 Sep 2019
0 replies
0 retweets
1 like
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.