crossfire-v2.0.14: it's 2x faster than v2.0.0 (with benchmark against Kanal)

52 points frostyplanet 16 comments

About one month ago, I released my channel crate https://docs.rs/crossfire/latest/crossfire/ v2.0.0, a lockless MPMC that supports threading / async context, based on crossbeam, and I'm in active development towards v2.1

https://github.com/frostyplanet/crossfire-rs

ref: plans for v2.1

Some hot paths have been spotted, and I've backported optimization patches to v2.0 master branch. Also fixed a couple of deadlocks, scheduled tests have been run stably for over a week in master branch. So I have updated the benchmark v2.0.14. Faster than kanal in most cases. Welcome to check it out. (There will be more optimization in v2.1, and it's a complete overhaul.)

Zero bounded channel (unbuffered channel) feature is still lacking, and I planned to add it in v2.1. I would like to know your opinion. So I started a poll in GitHub https://github.com/frostyplanet/crossfire-rs/discussions/25

Also, welcome to discuss here.

https://preview.redd.it/vt33sbgfvogf1.png?width=798&format=png&auto=webp&s=be241ef078839979bf84ddea92dc1543f6bdc206