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

perf: Optimize generation of initial state for default fluents. #559

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

arbimo
Copy link
Member

@arbimo arbimo commented Jan 16, 2024

This patch improves the performance of generating the initial state, essentially by caching the domain of each parameter.

On a non trivial problem I tested, it brings the execution time from ~21 seconds to ~1 second, bringing significant gains when this is the bottleneck (e.g. when converting to protobuf).

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a54871a) 85.12% compared to head (5f20bb3) 85.12%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #559   +/-   ##
=======================================
  Coverage   85.12%   85.12%           
=======================================
  Files         201      201           
  Lines       26963    26964    +1     
=======================================
+ Hits        22953    22954    +1     
  Misses       4010     4010           

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

Copy link
Member

@alvalentini alvalentini left a comment

Choose a reason for hiding this comment

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

LGTM! Great improvement!

@alvalentini alvalentini merged commit a94d2c8 into master Jan 16, 2024
8 checks passed
@alvalentini alvalentini deleted the optim-initial-values branch January 16, 2024 14:37
@arbimo arbimo mentioned this pull request Jan 25, 2024
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.

None yet

3 participants