Skip to content

Conversation

@grincha09
Copy link
Contributor

Thanks for your videos
Just wanted to share my approach of using boost asio with coroutines
Coroutines are stackfull and also from boost (there are also stackless from cpp-20 - the channel "Talking Async" on youtube shows examples of use)
No idea how it affects performance, but it is more readable (at least for me) and does not use explicit shared pointers(which do worsen performance)
Hope you find something useful

Thanks for your videos
Just wanted to share my approach of using boost asio with coroutines
Coroutines are stackfull and also from boost (there are also stackless from cpp-20 - the channel "Talking Async" on youtube  shows examples of use)
No idea how it affects performance, but it is more readable (at least for me) and does not use explicit shared pointers(which do worsen performance)
@grincha09
Copy link
Contributor Author

also in rust profile you add
lto = "fat" # Enables full link-time optimization for better inlining and dead code elimination across crates.
in cmakelists.txt you can also enable lto with
add_compile_options( -flto )

@antonputra
Copy link
Owner

thnk you for the pr, i'll give it a try

@antonputra
Copy link
Owner

@grincha09 can you make multithreaded and use 2 threads instead of a single one?

vector of threads calling ioc.run()
Copy link
Owner

@antonputra antonputra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@antonputra antonputra merged commit ebc7396 into antonputra:main Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants