Reduce BearSSL code size by not -O2 FSMs by earlephilhower · Pull Request #7807 · esp8266/Arduino · GitHub
Skip to content

Reduce BearSSL code size by not -O2 FSMs#7807

Merged
d-a-v merged 2 commits into
esp8266:masterfrom
earlephilhower:minibssl
Jan 3, 2021
Merged

Reduce BearSSL code size by not -O2 FSMs#7807
d-a-v merged 2 commits into
esp8266:masterfrom
earlephilhower:minibssl

Conversation

@earlephilhower

Copy link
Copy Markdown
Collaborator

The FSMs that drive the encryption logic are not performance critical,
but they are very large. Build BearSSL using -Os on them, leaving -O2
everywhere else (i.e. encryption) for speed.

Saves 1-2KB of flash for SSL applications.

The FSMs that drive the encryption logic are not performance critical,
but they are very large.  Build BearSSL using -Os on them, leaving -O2
everywhere else (i.e. encryption) for speed.

Saves 1-2KB of flash for SSL applications.
@devyte

devyte commented Jan 3, 2021

Copy link
Copy Markdown
Collaborator

@earlephilhower

Copy link
Copy Markdown
Collaborator Author

@devyte devyte left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved!

@d-a-v d-a-v merged commit 100a8df into esp8266:master Jan 3, 2021
@earlephilhower earlephilhower deleted the minibssl branch January 3, 2021 23:12
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.

3 participants