-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
lib: ensure no holey array in fixed_queue #54537
lib: ensure no holey array in fixed_queue #54537
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #54537 +/- ##
==========================================
- Coverage 87.34% 87.33% -0.01%
==========================================
Files 649 649
Lines 182524 182621 +97
Branches 35026 35044 +18
==========================================
+ Hits 159420 159501 +81
- Misses 16373 16395 +22
+ Partials 6731 6725 -6
|
Hi! Could you amend your commit message to begin with an active verb (after the subsystem)? |
I have run the benchmark for events: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1616/ Does not look like this change would cause any performance regression. But would be happy to know if any benchmark that is missed. |
4bee60e
to
fbe2d3a
Compare
Co-authored-by: Jake Yuesong Li <jake.yuesong@gmail.com>
fbe2d3a
to
5f3a09d
Compare
PR comments addressed. I have also updated the data structure comments in |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@joyeecheung @targos @benjamingr PTAL 🙏 |
I'm approving this even without a test but a test would be nice |
@benjamingr see this thread. I think (and I agree) the idea is that we don't want to show it as a wanted behaviour. We fix it to avoid hard crashes. |
Thinking about this again, maybe we should add a test to the |
Oh, I didn't know there are |
Actually, this may not be a known issue anymore - especially with this patch. I added a test case in |
Do you have any objections on this one? @joyeecheung @legendecas 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the added test LGTM
Landed in 981c701 |
Fixes: #54472
Refs: #54186 (comment)