-
Notifications
You must be signed in to change notification settings - Fork 12
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
perf(ecau): refactor sync generators to prevent babel regenerator #401
Conversation
Codecov Report
@@ Coverage Diff @@
## main #401 +/- ##
===========================================
- Coverage 100.00% 99.90% -0.10%
===========================================
Files 44 44
Lines 995 1002 +7
Branches 167 168 +1
===========================================
+ Hits 995 1001 +6
- Partials 0 1 +1
Continue to review full report at Codecov.
|
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 alternative would be to use Array.forEach()
which also provides the index to its callback function. That would be doable for our current use case, but it's not always feasible to use a callback function instead of an inline loop.
It wouldn't preserve the current semantics, since there's async stuff going on in the loop body. While we could use Speaking of |
43c3872
to
49e3ce5
Compare
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.
You are right, I had missed the await
keyword.
perf(ecau): refactor sync generators to prevent babel regenerator (#401)
🚀 Released 1 new userscript version(s):
|
Fixes #399.