# Objective - Avoid cloning the `CosmicBuffer` every time you create a new text measurement. ## Solution - Inject a buffer query when calculating layout so existing buffers can be reused. ## Testing - I tested the `text`, `text_debug`, and `text_wrap_debug` examples. - I did not do a performance test. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||