--- title: "Go Performance Optimization" date: "10-11-2025" last_modified: "10-11-2025:19:21" tags: ["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 ```go type Cache struct { entries map[string]*CachedEntry mu sync.RWMutex } ``` ### Profiling ```bash go test -cpuprofile=cpu.prof go tool pprof cpu.prof ```