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

Remove graph dependency from src/constraints/consumer.jl #944

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abelsiqueira
Copy link
Member

Part of #942
Closes #943

@abelsiqueira abelsiqueira force-pushed the 943-consumer-constraints branch from 97fc644 to 6206bbf Compare December 4, 2024 13:13
@abelsiqueira abelsiqueira added the benchmark PR only - Run benchmark on PR label Dec 4, 2024
@abelsiqueira abelsiqueira marked this pull request as ready for review December 4, 2024 13:13
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Benchmark Results

73f765e... e9ff4c1... 73f765e.../e9ff4c1544c325...
energy_problem/create_model 43.7 ± 0.96 s 51 ± 0.77 s 0.856
energy_problem/input_and_constructor 14.9 ± 0.19 s 14.7 ± 0.39 s 1.01
time_to_load 4.16 ± 0.038 s 4.16 ± 0.015 s 1
73f765e... e9ff4c1... 73f765e.../e9ff4c1544c325...
energy_problem/create_model 0.664 G allocs: 21.1 GB 0.661 G allocs: 21.2 GB 0.995
energy_problem/input_and_constructor 0.043 G allocs: 1.67 GB 0.043 G allocs: 1.67 GB 1
time_to_load 0.159 k allocs: 11.2 kB 0.159 k allocs: 11.2 kB 1

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.
Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.92%. Comparing base (73f765e) to head (e9ff4c1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #944      +/-   ##
==========================================
+ Coverage   95.91%   95.92%   +0.01%     
==========================================
  Files          29       29              
  Lines        1027     1030       +3     
==========================================
+ Hits          985      988       +3     
  Misses         42       42              

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

@abelsiqueira abelsiqueira marked this pull request as draft December 4, 2024 15:45
@abelsiqueira abelsiqueira force-pushed the 943-consumer-constraints branch from 6206bbf to 0dc168c Compare December 5, 2024 12:23
@abelsiqueira abelsiqueira marked this pull request as ready for review December 5, 2024 12:58
@abelsiqueira abelsiqueira requested a review from datejada December 5, 2024 12:59
@abelsiqueira
Copy link
Member Author

@datejada, I've updated this to follow the new strategy. The code is still slow, though, so we might want to wait until all rep_periods_profiles are removed to see if it's possible to make it better.

@abelsiqueira abelsiqueira marked this pull request as draft December 6, 2024 09:49
@abelsiqueira abelsiqueira force-pushed the 943-consumer-constraints branch from 0dc168c to f6e89c8 Compare December 6, 2024 10:55
@abelsiqueira abelsiqueira force-pushed the 943-consumer-constraints branch from f6e89c8 to e9ff4c1 Compare December 9, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark PR only - Run benchmark on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't get data from graph object in src/constraints/consumer.jl
1 participant