New search function et drag and drop clean
This commit is contained in:
32
notes/research/tech/go-performance.md
Normal file
32
notes/research/tech/go-performance.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user