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

Slip: ineffective optimisation #66

Open
lie-yan opened this issue Dec 4, 2024 · 0 comments
Open

Slip: ineffective optimisation #66

lie-yan opened this issue Dec 4, 2024 · 0 comments

Comments

@lie-yan
Copy link

lie-yan commented Dec 4, 2024

let nextHasPrevKey = nextChildren.contains(prevKey)
let prevHasNextKey = prevChildren.contains(nextKey)

According to comment // the sets exist as an optimisation for performance reasons, it should be

let nextHasPrevKey = nextChildrenSet!.contains(prevKey) 
let prevHasNextKey = prevChildrenSet!.contains(nextKey) 
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

1 participant