Skip to content

[FEATURE] Speed up creating UnsteadyProblems #92

@camUrban

Description

@camUrban

Problem Statement

Since v4.0.0, several users have reported that Ptera Software has become much slower at creating UnsteadyProblems. I've also noticed this, and it is particularly bad when initializing problems with many time steps.

Proposed Solution

More investigating needs to be done to pinpoint the exact cause of the slowdown. However, I suspect it may have something to do with recomputing property attributes in Airplane or Wing.

It's also possible that we are unnecessarily calling parameter validation functions on arguments in private methods and functions.

One last thing to try is using defining __slots__ for Airfoil, WingCrossSection, Wing, and Airplane, which will likely provide a modest speed up for attribute assignment and access.

Alternative Solutions

None

Additional Context

None

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions