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

Utilize stack data structure internally. #31

Open
fr33r opened this issue Jul 25, 2020 · 0 comments
Open

Utilize stack data structure internally. #31

fr33r opened this issue Jul 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@fr33r
Copy link
Contributor

fr33r commented Jul 25, 2020

Description

By nature, the sequence that occurs in order to successfully save or rollback is well suited for being managed by a stack data structure. In general, construction of the internal stack will occur based on the options provided to the work unit at construction time. During the save process, each sequence will be processed by popping it off of the stack and placed on a separate stack (the "rollback stack") that maintains the reverse order. If a rollback is required, we instead continue to process the rollback stack until it is empty.

@fr33r fr33r added the enhancement New feature or request label Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant