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

Make a more explicit description on why this code works correctly. #355

Open
Konard opened this issue Jul 4, 2022 · 1 comment
Open

Comments

@Konard
Copy link
Member

Konard commented Jul 4, 2022

return AreEqual(link.SizeAsSource, default) && !AreEqual(link.Source, default);

It works because when link is deleted it not indexed using trees, but it has Source (as Previous element) and Target (as Next element).

@uselessgoddess
Copy link
Member

It works because when link is deleted it not indexed using trees, but it has Source (as Previous element) and Target (as Next element).

Konard uses the memory of deleted links for list of deleted unused links

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

No branches or pull requests

2 participants