diff options
author | Alexis (Poliorcetics) Bourget | 2022-10-15 17:16:17 +0000 |
---|---|---|
committer | Michael Davis | 2022-10-21 12:42:33 +0000 |
commit | 34389e1d5472f458934b0af2a15192e2b8d83e1e (patch) | |
tree | 8a17f65501b20aae9bd7bc945ff37645f1f0b3a2 /helix-core/src/comment.rs | |
parent | 3aea33a4152e8ad1018b7d7019b2d2fde971eea4 (diff) |
nit: Do less allocations in `ui::menu::Item::label` implementations
This complicates the code a little but it often divides by two the number of allocations done by
the functions. LSP labels especially can easily be called dozens of time in a single menu popup,
when listing references for example.
Diffstat (limited to 'helix-core/src/comment.rs')
0 files changed, 0 insertions, 0 deletions