Files
personotes/notes/research/tech/go-performance.md

511 B

title, date, last_modified, tags
title date last_modified tags
Go Performance Optimization 10-11-2025 11-11-2025:15:16
research
tech
performance

Go Performance

Current Bottlenecks

  • Full re-index on file changes
  • No caching of parsed front matter

Optimizations

Incremental Indexing

Only re-parse changed files.

Caching

type Cache struct {
    entries map[string]*CachedEntry
    mu      sync.RWMutex
}

Profiling

go test -cpuprofile=cpu.prof
go tool pprof cpu.prof