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

batch.clear() improvement #306

Merged
merged 1 commit into from
Sep 24, 2024
Merged

batch.clear() improvement #306

merged 1 commit into from
Sep 24, 2024

Conversation

exside
Copy link
Contributor

@exside exside commented Sep 18, 2024

Is there a specific reason to use .splice(0, this.length) instead of simply setting length = 0? If there's not the latter is faster...

Is there a specific reason to use `.splice(0, this.length)` instead of simply setting `length = 0`? If there's not the latter is faster...
@kriszyp kriszyp merged commit 1e0cb64 into kriszyp:master Sep 24, 2024
1 check passed
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.

2 participants