| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…cpp::TokenList::combineOperators()`
…`simplecpp::TokenList::combineOperators()`
|
This cuts the Ir for the function in question in half. Running ./testrunner in valgrind: GCC 16 - 73,545,066 -> 73,089,626 -> 72,638,322 |
Sorry, something went wrong.
| { | ||
| std::stack<bool> executableScope; | ||
| executableScope.push(false); | ||
| std::stack<bool, std::vector<bool>> executableScope{{false}}; |
There was a problem hiding this comment.
isn't std::vector<bool> bad to use overall in c++11..
are you sure that all usage here will work fine..
Sorry, something went wrong.
There was a problem hiding this comment.
As this is about performance and valgrind indicates that is fine in either compiler so I see no problem.
libc++ has been adding special handling for vector<bool> and we are also not using it as a bit field here (which is the common usage for that IIRC).
Sorry, something went wrong.
There was a problem hiding this comment.
I am not talking about performance nor stuff that valgrind will detect. I referred to such problems:
Sorry, something went wrong.
There was a problem hiding this comment.
None of that applies here since we are using it through std::stack and only use it through that interface.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.