Skip to content

Commit

Permalink
Reduce BearSSL code size by not -O2 FSMs (esp8266#7807)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
earlephilhower authored Jan 3, 2021
1 parent da13845 commit 100a8df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/sdk/include/bearssl/bearssl_git.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
#define BEARSSL_GIT 28bebad
#define BEARSSL_GIT c0b69df
Binary file modified tools/sdk/lib/libbearssl.a
Binary file not shown.

0 comments on commit 100a8df

Please sign in to comment.