Skip to content

[PyTorch] Outline OperatorEntry::assertSignatureIsCorrect fail path#51269

Closed
swolchok wants to merge 4 commits intogh/swolchok/97/basefrom
gh/swolchok/97/head
Closed

[PyTorch] Outline OperatorEntry::assertSignatureIsCorrect fail path#51269
swolchok wants to merge 4 commits intogh/swolchok/97/basefrom
gh/swolchok/97/head

Conversation

@swolchok
Copy link
Copy Markdown
Contributor

@swolchok swolchok commented Jan 28, 2021

Stack from ghstack:

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's -ftime-trace feature + ClangBuildAnalyzer.

Differential Revision: D26121814

NOTE FOR REVIEWERS: This PR has internal Facebook specific changes or comments, please review them on Phabricator!

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.

Differential Revision: [D26121814](https://our.internmc.facebook.com/intern/diff/D26121814/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D26121814/)!

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jan 28, 2021

💊 CI failures summary and remediations

As of commit 1034354 (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-CircleCI failure(s)

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

…ct fail path"

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.

Differential Revision: [D26121814](https://our.internmc.facebook.com/intern/diff/D26121814/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D26121814/)!

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Jan 28, 2021
Pull Request resolved: #51269

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.

Differential Revision: [D26121814](https://our.internmc.facebook.com/intern/diff/D26121814/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D26121814/)!
ghstack-source-id: 120554676
…fail path"

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.

Differential Revision: [D26121814](https://our.internmc.facebook.com/intern/diff/D26121814/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D26121814/)!

[ghstack-poisoned]
@swolchok swolchok requested review from bhosmer and smessmer and removed request for smessmer January 29, 2021 05:24
return str.str();
}

void OperatorEntry::reportSignatureError(std::string name) const {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

std::string by value? (eyebrow quirk)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

…fail path"

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.

Differential Revision: [D26121814](https://our.internmc.facebook.com/intern/diff/D26121814/)

**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D26121814/)!

[ghstack-poisoned]
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 30, 2021

Codecov Report

Merging #51269 (1034354) into gh/swolchok/97/base (0f52fcf) will increase coverage by 0.00%.
The diff coverage is 25.00%.

@@                 Coverage Diff                  @@
##           gh/swolchok/97/base   #51269   +/-   ##
====================================================
  Coverage                80.85%   80.85%           
====================================================
  Files                     1938     1938           
  Lines                   211171   211175    +4     
====================================================
+ Hits                    170738   170742    +4     
  Misses                   40433    40433           

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in d1ddc5d.

@facebook-github-bot facebook-github-bot deleted the gh/swolchok/97/head branch February 5, 2021 15:22
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…ytorch#51269)

Summary:
Pull Request resolved: pytorch#51269

This saves about 10% of the compile time of Functions.cpp. Found using clang-9's `-ftime-trace` feature + ClangBuildAnalyzer.

Test Plan:
Compared -ftime-trace + ClangBuildAnalyzer output.

Before: P167884397

After: P167888502

Note that time spent generating assertSignatureIsCorrect is way down, though it's still kind of slow.

Reviewed By: ezyang

Differential Revision: D26121814

fbshipit-source-id: 949a85d8939c02e4fb5ac1adc35905ed34414724
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants