forked from jech/babeld
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch sets the default opt level to O3 rather than Os meaning to optimize strongly for speed instead of optimizing for size, this roughly doubles the binary size from 100kb -> 190kb in my tests. But the resulting binary performs 3-4x better. On our target devices we have 90kb to spare and need every ounce of performance we can get to keep babel networks from going unstable when an individual router has many neighbors. The new opt level causes some compiler warnings that where not previously present, these are muted as they are warning of intended behavior. Our fixed size target strings do not need to be null terminated and we do intend to truncate longer strings if provided.
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters