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

Performance enhancement for setting values #4

Open
mnblonsky opened this issue Oct 12, 2023 · 0 comments
Open

Performance enhancement for setting values #4

mnblonsky opened this issue Oct 12, 2023 · 0 comments

Comments

@mnblonsky
Copy link
Collaborator

Performance can be very slow when setting values of multiple elements because of the element order in OpenDSSDirect. It may be significantly faster to create a set_values() function that takes information for multiple elements and sets them in the optimal order.

Two possible options for implementation:

  • Use class.First and class.Next and setting the values for each element as needed
  • Save the OpenDSS order of elements for each class, then sort the elements of interest, then call set_() in that order
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

No branches or pull requests

1 participant