-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tooling/Inclusion] Refactor to use tables for compile time
The macro expansion takes 13s and generates an 1.5M obj file, table uses 2s and 680k .o file. Sanitizers take multiple minutes to compile the old version, while having negligible overhead on the new version. No change in functionality.
- Loading branch information
Showing
1 changed file
with
24 additions
and
4 deletions.
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
4674e30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
When compiling this patch with gcc we get lots of warnings like
I guess because we write size_t in "unsigned NSLen".
Anything to worry about?
4674e30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine, the strings are all constants and the size will never exceed unsigned. We can add an explicit cast to get rid of the warnings.