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

Take advantage of stack support for dmimgcalc operation parameter #682

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

DougBurke
Copy link
Member

If dmimgcalc is given an opstr that's "too long" (for some ill-defined criterion of what too long actually is) we switch to using the stack support, which is new in CIAO 4.15. We could always do so, but

a) let's not break things we know already work
b) not using a stack here is a bit cleaner

We do not change how dmimgcalc_add works, since even though it could take advantage of this, we have code that seems to work, and there may be some advantage of adding data in chunks rather than all-in-one go, primarily in the amount of memory used at the expense of header/metadata shenanighans.

There are some minor code-style tweaks.

If dmimgcalc is given an opstr that's "too long" (for some
ill-defined criterion of what too long actually is) we switch to
using the stack support, which is new in CIAO 4.15. We could
always do so, but

a) let's not break things we know already work
b) not using a stack here is a bit cleaner

We do not change how dmimgcalc_add works, since even though it
could take advantage of this, we have code that seems to work,
and there may be some advantage of adding data in chunks rather
than all-in-one go, primarily in the amount of memory used at
the expense of header/metadata shenanighans.

There are some minor code-style tweaks.
@DougBurke
Copy link
Member Author

Related to #634

@DougBurke DougBurke merged commit 8883c37 into cxcsds:main Nov 14, 2022
@DougBurke DougBurke deleted the use-dmimgcalc-op-stack branch November 14, 2022 19:14
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.

1 participant