# Memory Handoff — Go

## Domain
Memory / Allocations

## Environment
- Go version: {{version}}
- Module: {{module_name}}
- Benchmark command: `go test -bench=. -benchmem -count=5 ./...`
- GOGC: default (100) | custom ({{value}})

## Baseline
- Profiled with: `go test -memprofile`
- Top allocators (by bytes):
  1. {{func}} — {{MB}} MB ({{allocs}} allocs/op)
  2. ...
- Escape count: {{N}} escapes to heap
- GC: {{N}} cycles/sec, {{pct}}% CPU

## Experiments
| # | Target | Category | Result | B/op Before | B/op After | allocs Before | allocs After | Notes |
|---|--------|----------|--------|------------|------------|--------------|--------------|-------|

## Current State
- Branch: `codeflash/optimize`
- Last experiment: #{{N}}
- Next target: {{func}} ({{MB}} MB, {{allocs}} allocs/op)

## Discoveries
- {{what worked, what didn't, dead ends}}
