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

Memoize typetree calls #1302

Merged
merged 20 commits into from
Mar 29, 2024
Merged

Memoize typetree calls #1302

merged 20 commits into from
Mar 29, 2024

Conversation

vchuravy
Copy link
Member

  • memoize typetree
  • fixup! memoize typetree
  • fixup! memoize typetree
  • fixup! memoize typetree

src/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
@vchuravy
Copy link
Member Author

vchuravy commented Feb 21, 2024

Seems to be an about 10s speedup.

@wsmoses is there a way to query the tree depth allowed?

@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
src/rules/customrules.jl Outdated Show resolved Hide resolved
src/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
@EnzymeAD EnzymeAD deleted a comment from github-actions bot Mar 19, 2024
src/rules/typerules.jl Outdated Show resolved Hide resolved
@vchuravy vchuravy mentioned this pull request Mar 19, 2024
vchuravy and others added 12 commits March 19, 2024 17:38
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
src/rules/typerules.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
test/typetree.jl Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 75.39%. Comparing base (ed0ea50) to head (795eaa7).

Files Patch % Lines
src/typetree.jl 87.09% 4 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1302      +/-   ##
==========================================
+ Coverage   75.37%   75.39%   +0.02%     
==========================================
  Files          35       35              
  Lines       10655    10653       -2     
==========================================
+ Hits         8031     8032       +1     
+ Misses       2624     2621       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vchuravy vchuravy merged commit fe036b9 into main Mar 29, 2024
43 of 48 checks passed
@vchuravy vchuravy deleted the vc/typetree branch March 29, 2024 19:53
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.

3 participants