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

checking if newLeaf != this._nodes[0][index] first before update #340

Open
0xDatapunk opened this issue Oct 7, 2024 · 0 comments
Open
Labels
audit 🔍 This issue is related to an audit. performance 📈 A code change that improves the performance refactoring ♻️ A code change that neither fixes a bug nor adds a feature

Comments

@0xDatapunk
Copy link
Collaborator

let node = newLeaf

we can save some computation by checking if newLeaf != this._nodes[0][index] first?

@cedoor cedoor added audit 🔍 This issue is related to an audit. refactoring ♻️ A code change that neither fixes a bug nor adds a feature performance 📈 A code change that improves the performance labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit 🔍 This issue is related to an audit. performance 📈 A code change that improves the performance refactoring ♻️ A code change that neither fixes a bug nor adds a feature
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants