Skip to content

fix: improve the speed of get_balanced_failure_strain#357

Merged
mortenengen merged 2 commits into
devfrom
improve-speed-get-balanced-failure-strain
Jun 10, 2026
Merged

fix: improve the speed of get_balanced_failure_strain#357
mortenengen merged 2 commits into
devfrom
improve-speed-get-balanced-failure-strain

Conversation

@mortenengen

Copy link
Copy Markdown
Member

In .get_balanced_failure_strain on the BeamSectionCalculator we perform a significant amount of queries in a double for loop. This is an attempt to make the method more efficient.

@mortenengen mortenengen added the enhancement New feature or request label May 21, 2026
@mortenengen mortenengen moved this to New ✨ in PR tracker May 21, 2026
@mortenengen mortenengen marked this pull request as ready for review June 10, 2026 06:23
@mortenengen mortenengen requested a review from talledodiego June 10, 2026 06:23

@talledodiego talledodiego left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You are right. Those lines can be factored out from the inner loop.
I think this is a good improvement.

@mortenengen mortenengen merged commit 4d20a0b into dev Jun 10, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from New ✨ to Done 🚀 in PR tracker Jun 10, 2026
@mortenengen mortenengen deleted the improve-speed-get-balanced-failure-strain branch June 10, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done 🚀

Development

Successfully merging this pull request may close these issues.

2 participants