Files
personotes/notes/research/tech/go-performance.md
2025-11-12 09:31:09 +01:00

36 lines
661 B
Markdown

---
title: Go Performance Optimization
date: 10-11-2025
last_modified: 11-11-2025:18:28
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
```
<a href="#" onclick="return false;" hx-get="/api/notes/un-dossier/test/Poppy-test.md" hx-target="#editor-container" hx-swap="innerHTML">Poppy Test</a>