-
-
Notifications
You must be signed in to change notification settings - Fork 50
fix: replace plimit with own promises limiter implementation to plug mem leak #386
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
Conversation
+ avoid memory leak + trigger the GC less often closes tinylibs#365 Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
commit: |
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
- Standardize naming to pattern: [prefix-technique] [core-functionality] [(async/sync)] - Convert verbose descriptions to concise technical format - Update 32 test descriptions across 8 files for consistency - Improve code readability and maintainability - All tests continue to pass (104 passing, 1 skipped)
|
The current approach keeping the p-limit 'stream' API is inherently racy at task abortion handling. |
with less time it should be less flaky
src/utils.ts
Outdated
| } | ||
|
|
||
| const worker = async () => { | ||
| while (!finished) { |
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 caller is blocked until there's a room to proceed the next. I think it's fine for tinybench usage and avoid the usage of intermediate mechanism to store internally the work left.
closes #365