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

Replace structs by-value usages with by-ref usages #95

Merged

Conversation

sivachandran
Copy link
Contributor

@sivachandran sivachandran commented Mar 15, 2021

The following changeset replaces all most of the uses of struct by-value usage with by-ref usage.

Struct by-value usage incurs the cost of copying/cloning the struct data which should be avoided where it is not required.

The function CreateWorkflow is broken. It was supposed to assign an increasing id to the primary and on-failure steps. But the existing implementation didn't work as expected. So, now I added a test case to verify the expected behaviour and also fixed the CreateWorkflow function.

@sivachandran sivachandran merged commit b7b5e44 into clamp-orchestrator:master Mar 18, 2021
@sivachandran sivachandran deleted the struct-pass-by-ptr branch March 18, 2021 08:05
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.

2 participants