Skip to content

Comments

refactor: simplify Buffer creation from Vec#6621

Merged
robert3005 merged 1 commit intovortex-data:developfrom
SYaoJun:220_buffer
Feb 20, 2026
Merged

refactor: simplify Buffer creation from Vec#6621
robert3005 merged 1 commit intovortex-data:developfrom
SYaoJun:220_buffer

Conversation

@SYaoJun
Copy link
Contributor

@SYaoJun SYaoJun commented Feb 20, 2026

Summary

Replace vec.iter().cloned().collect::<Buffer<_>>() with Buffer::from(vec)
for better performance and readability.

Testing

N/A

@0ax1 0ax1 added the changelog/chore A trivial change label Feb 20, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 20, 2026

Merging this PR will not alter performance

✅ 986 untouched benchmarks
⏩ 1426 skipped benchmarks1


Comparing SYaoJun:220_buffer (ec94734) with develop (860a68e)

Open in CodSpeed

Footnotes

  1. 1426 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Signed-off-by: syaojun <libevent@yeah.net>
@robert3005 robert3005 enabled auto-merge (squash) February 20, 2026 17:01
@robert3005 robert3005 merged commit 9079628 into vortex-data:develop Feb 20, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants