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

Use manual memory management for Nim binary trees #303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alex-m159
Copy link

Hi @hanabi1224,

I would like to contribute some simple modifications to the 2.nim program to use manual memory management instead of the GC. The new version (3.nim) deallocates each node after it traverses any child nodes, and then deallocates the root nodes at the end of the traversal. It should still fit the description of the binary trees problem from the other benchmarks game.

Let me know if any further modifications are necessary to meet the implementation guidelines. Thanks!

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.

None yet

1 participant