Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "int = 0" SFINAE in std::function to improve compiler throughput #244

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Nov 1, 2019

Description

Use on/off SFINAE in std::function when not blocked by compiler bugs.

Xiang Fan of the C1XX frontend team reported that this improved throughput in a customer submitted benchmark.

Checklist

  • I understand README.md. I also understand that acceptance of
    community PRs will be delayed until the test and CI systems are online.
  • Identifiers in product code changes are properly _Ugly as per
    https://eel.is/c++draft/lex.name#3.1 or there are no product code changes.
  • The STL builds successfully and all tests have passed (must be manually
    verified by an STL maintainer before CI is online, leave this unchecked for
    initial submission).
  • These changes introduce no known ABI breaks (adding members, renaming
    members, adding virtual functions, changing whether a type is an aggregate
    or trivially copyable, etc.).
  • These changes were written from scratch using only this repository and
    the C++ Working Draft as a reference (and any other cited standards).
    If they were derived from a project that's already listed in NOTICE.txt,
    that's fine, but please mention it. If they were derived from any other
    project (including Boost and libc++, which are not yet listed in
    NOTICE.txt), you must mention it here, so we can determine whether the
    license is compatible and what else needs to be done.

@BillyONeal BillyONeal requested a review from a team as a code owner November 1, 2019 00:15
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

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

Looks good. No merge conflicts with #226 although they work towards the same goal.

@BillyONeal
Copy link
Member Author

We mess up clang-format sometimes too :P

@BillyONeal
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BillyONeal
Copy link
Member Author

Looks like this is ICEing the chk build of the compiler for now....

@CaseyCarter
Copy link
Member

CaseyCarter commented Nov 1, 2019

Looks like this is ICEing the chk build of the compiler for now....

Clearly you are mistaken; the first post states "all tests pass":

image

@sylveon
Copy link
Contributor

sylveon commented Nov 1, 2019

You're telling me checking this box will fix all my build issues? Sign me up

@StephanTLavavej StephanTLavavej added the blocked Something is preventing work on this label Nov 1, 2019
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

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

The FE team needs to fix the ICE you encountered, and then that needs to ship in a Preview, before we can merge this.

@StephanTLavavej
Copy link
Member

Cross-reference: this is related to #187.

@StephanTLavavej StephanTLavavej changed the title Use on/off SFINAE in std::function, as requested by Xiang Fan of the C1XX frontend team Use "int = 0" SFINAE in std::function to improve compiler throughput Nov 2, 2019
@miscco
Copy link
Contributor

miscco commented Nov 2, 2019

Should that also contain the fixes from @CaseyCarter concerning unique_ptr and hash_map

@StephanTLavavej
Copy link
Member

That’s a good question. @BillyONeal, I suspect that #248 is the same bug, so @miscco ’s idea of grouping them together should save time. #249 appears to be a different bug.

@BillyONeal BillyONeal removed the blocked Something is preventing work on this label Nov 26, 2019
Xiang Fan of the C1XX frontend team reported that this improved throughput in a customer submitted benchmark.
@BillyONeal BillyONeal self-assigned this Dec 2, 2019
@BillyONeal BillyONeal merged commit a403449 into microsoft:master Dec 2, 2019
@BillyONeal BillyONeal deleted the function_on_off_sfinae branch December 2, 2019 22:37
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.

5 participants