Is it better to use boost :: asio :: basic_stream_socket :: async_read_some instead of boost :: asio :: async_read?

Is it better to use boost :: asio :: basic_stream_socket :: async_read_some instead of boost :: asio :: async_read when it comes to high performance bandwidth?

+5
source share
1 answer

boost::asio::async_read- a complex operation that is well described in the documentation

This operation is performed in terms of zero or more calls to the async_read_some thread and is known as a folded operation. The program must ensure that the thread does not perform any other read operations (such as async_read, the async_read_some stream, or any other operations that it reads) until this operation completes.

any conclusions about performance should be based on empirical data depending on your application.

+3
source

All Articles