boostorg / boostorg/beast

basic_file_body buffer size and ::sendfile optimization

Open
#1,094 7 comments 0 reactions 0 assignees View on GitHub
Design Feature
Dominant language
C++
Stars
4.8k
Forks
694
Avg merge
12h 48m
Merged PRs (30d)
1

Description

Hi,

I use Beast in an application which is to be mainly run on SoCs such as the Raspberry Pi.

I have noticed that `boost::beast::file_body` suffers from VERY bad performance when sending large files. When I checked the code (Boost 1.66.0) I was surprised to see a very small buffer (4096 bytes) being used for reading the file, without the possibility of enlarging it easily. That's not nice at all.

I googled and googled and noticed that sendfile support was mentioned a few times, but I didn't find it in either Boost 1.66.0 or the develop version of Beast.

Is it hidden somewhere or what happened to it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.