Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make SdfPathTable::_EraseSubtreeAndSiblings non-recursive #1172

Merged

Conversation

marktucker
Copy link
Contributor

Make the SdfPathTable::_EraseSubtreeAndSiblings function non-recursive, so there is no risk of running out of stack space even with an incredibly large number of siblings.

Description of Change(s)

Replaced a recursive implementation of iteration with a non-recursive iteration. The resulting ordering of calls to _EraseFromTable is reversed (first to last instead of last to first), but looking at _EraseFromTable I don't think this should make any difference.

Fixes Issue(s)

…re is

no risk of running out of stack space even with an incredibly large number
of siblings.
@jilliene
Copy link

Filed as internal issue #USD-6012

@pixar-oss pixar-oss merged commit 0c19908 into PixarAnimationStudios:dev Apr 29, 2020
@marktucker marktucker deleted the dev_sdfpathtable_erase branch July 22, 2020 07:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants