# Objective - Don't reallocate the spans vector every time TextPipeline updates a buffer. ## Solution - Cache the spans buffer in `TextPipeline`. This is possible through some [rust magic](https://users.rust-lang.org/t/how-to-cache-a-vectors-capacity/94478/10). |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||