Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 128B chunks instead of 1B writes in Print::print(FlashStringHelper) #6893

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

earlephilhower
Copy link
Collaborator

@earlephilhower earlephilhower commented Dec 9, 2019

Fixes #6524

Should help with speed of output when printing large flash strings to
things like a file or a TCP connection.

Use a 128 byte chunk in a temp buffer to send data using write(),
reducing the # of write calls by ~127x.

Fixes esp8266#6524

Should help with speed of output when printing large flash strings to
things like a file or a TCP connection.

Use a 128 byte chunk in a temp buffer to send data using write(),
reducing the # of write calls by ~128x.
@earlephilhower earlephilhower added this to the 2.7.0 milestone Dec 9, 2019
@devyte devyte merged commit 759ba27 into esp8266:master Dec 10, 2019
@earlephilhower earlephilhower deleted the printspeedup branch December 10, 2019 03:54
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.

Print::print(const __FlashStringHelper *) is very inefficient
3 participants