noalloc

What does it do?

It is tooling and libraries for enforcing zero heap allocations (dynamic memory allocations) in Go code. [1] It lets you mark a Go function as one that should not allocate, then checks that function and everything it calls for heap allocations and reports allocating lines. [2a][2b] For example, marking a function with //noalloc:root and running the noalloc command reports allocations such as a map write or string concatenation in that function. [3]

Activity, over time

Daily observations from the public event archive.

Attention

Daily stars & forks

Loading attention chart

Star accumulation

Cumulative stars

Loading star accumulation chart

Pull requests

Daily opens & merges

Loading pull requests chart

Conversations

Daily issues & comments

Loading conversations chart

Community

Daily accounts & reviews

Loading community chart

Releases

Daily releases

Loading releases chart

Mentions

13posts · 30d
Nov 40 posts
  1. Goで静的解析でヒープアロケーションが発生してる箇所を検出するやつらしい。便利そう theconsensuslabs/noalloc

    1 like · 23 views
  2. noalloc: Tooling and libraries to enforce zero heap allocations in Golang (github.com) Discussion | Main Link

  3. Thanks for clarification! I'm glad, that you're using the golang compiler capabilities. And now I see: theconsensuslabs/noalloc

  4. Reddit · · r/hackernews · u/HNMod

    noalloc: Tooling and libraries to enforce zero heap allocations in Golang

    1 point · 1 comment
  5. I've always wanted this for C#: theconsensuslabs/noalloc

    11 views
  6. noalloc: Tooling and libraries to enforce zero heap allocations in Golang theconsensuslabs/noalloc

    1 like
  7. noalloc: Tooling and libraries to enforce zero heap allocations in Golang lobste.rs #go

  8. noalloc: Tooling and libraries to enforce zero heap allocations in Golang comments · posted on 2026.10.28 at 14:29:25 (c=0, p=3)

    1 like
  9. Hacker News · · g0xA52A2A

    noalloc: Tooling and libraries to enforce zero heap allocations in Golang

    38 points · 10 comments
  10. Inspired by oxcaml's zero_alloc, I've been working on a tool to help clamp down on heap allocations in Golang. theconsensuslabs/noalloc

    16 likes · 1 repost

Latest stargazers

The last 10 distinct accounts we observed this year.

Most active participants

PR, issue, comment & review events in the past year.

Packages

Scan pending.

Live mentions badge

Show how many posts mention your project in the last 30 days.

Live mentions · last 30 days
theconsensuslabs/noalloc mentions in the last 30 days