秋来冬风的博客

Go1.26 Is Worth Paying Attention To

目录

Go 1.26 is scheduled to be released in February 2026. This article shares the changes that the author deems noteworthy.

  1. The new function supports passing expressions, simplifying pointer creation.
  2. The overhead of cgo calls is reduced by approximately 30%.
  3. greenteagc is enabled by default, bringing lower GC overhead.
  4. TLS enables two post-quantum key exchange mechanisms, SecP256r1MLKEM768 and SecP384r1MLKEM1024, by default.
  5. The overhead of certain heap allocations smaller than 512 bytes is reduced by up to 30%.
  6. Two experimental packages add APIs related to forward secrecy and SIMD.
Tags: