docs: a real example on recompute

This commit is contained in:
Andy Lee
2025-08-14 11:56:10 -07:00
parent 16f4572fe7
commit 79ca32e87b
2 changed files with 22 additions and 6 deletions

View File

@@ -360,6 +360,15 @@ Trade-offs:
- Significantly higher storage (10100× vs selective recomputation)
- Slightly larger memory footprint during build and search
Real-world quick benchmark (HNSW, 5k texts; script `benchmarks/benchmark_no_recompute.py`):
```text
recompute=True: ~6.58s; size ~1.1MB
recompute=False: ~0.10s; size ~16.6MB
Conclusion: no-recompute is much faster but uses more storage; recompute is smaller but has higher first-hop latency.
```
## Further Reading