Skip to content

Preallocate vector for MultiBuffer::excerpt_ids - #49381

Merged
cole-miller merged 1 commit into
mainfrom
excerpts-with-capacity
Feb 17, 2026
Merged

Preallocate vector for MultiBuffer::excerpt_ids#49381
cole-miller merged 1 commit into
mainfrom
excerpts-with-capacity

Conversation

@cole-miller

Copy link
Copy Markdown
Member

This saves some time spent reallocating inside Editor::on_buffer_event for large multibuffers.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Feb 17, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Feb 17, 2026
@cole-miller
cole-miller merged commit 90e1abd into main Feb 17, 2026
37 checks passed
@cole-miller
cole-miller deleted the excerpts-with-capacity branch February 17, 2026 22:04
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
This saves some time spent reallocating inside `Editor::on_buffer_event`
for large multibuffers.

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
This saves some time spent reallocating inside `Editor::on_buffer_event`
for large multibuffers.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant