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

Faster C/Pascal API #27

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Faster C/Pascal API #27

wants to merge 7 commits into from

Conversation

temcdrm
Copy link
Contributor

@temcdrm temcdrm commented Dec 1, 2020

Added functions to exchange values with less overhead in the C/Pascal interface to OpenDSS and other federates:

  • cpublish to avoid constructing so many strings on the fly; fncs_publish (const char *, const char *) now maps to this
  • fncs_count_events and fncs_next_event for a faster iteration
  • fncs_count_values and fncs_next_value for a faster iteration

Also expanded the comments to identify return values that should be freed by the caller.

TESP and OpenDSS use this version.

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.

3 participants