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

refactor trexio_text_read_group set of functions to read data in an arbitrary order #82

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

q-posev
Copy link
Member

@q-posev q-posev commented Feb 7, 2022

In the meantime, the custom garbage collector from generator_tools.py which was deallocating previously allocated memory (datasets and strings) is no longer valid here since the order of allocation is arbitrary. However, the built-in trexio_text_free_group functions can be used as a garbage collector as long as the file handle contains a pointer to the allocated group.

q-posev added 2 commits February 7, 2022 15:57
…order

This fix is required to fix backwards compatibility issue of TEXT back end. In the meantime, the custom garbage collector from generator_tools which was deallocating previously allocated memory (datasets and strings) is no longer valid here since the order of allocation can be atrbitrary. This requires a new custom garbage collector, maybe as a separate functions in TEXT back end
@q-posev q-posev changed the title [WIP] refactor trexio_text_read_group set of functions to read data in an arbitrary order refactor trexio_text_read_group set of functions to read data in an arbitrary order Feb 14, 2022
@q-posev q-posev merged commit 9482ff3 into master Feb 16, 2022
@scemama scemama deleted the fix-text-compatibility branch February 23, 2022 15:18
@scemama scemama restored the fix-text-compatibility branch February 23, 2022 15:18
@q-posev q-posev deleted the fix-text-compatibility branch May 18, 2022 09:33
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.

Backwards incompatibility of TREXIO_TEXT back end
1 participant