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

high cpu usage #16

Open
moham96 opened this issue Apr 9, 2024 · 0 comments
Open

high cpu usage #16

moham96 opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@moham96
Copy link
Owner

moham96 commented Apr 9, 2024

some problem related mostly to the streaming feature:

1- This line and the pipeline that it is calling are causing degradation in performance because the functions involved in pushing the bytes like _calculateLastDownloadedByte are time consuming.

_bytesRequestController.add(null);

2- currently streaming is not very responsive because the read request has to wait before it is processed and returned

3- non flushed pieces are not read, because we are using 2 different file handles, one for writing and one for reading, and the reading handle will not be able to read non flushed bytes

4- since we are using different handles for read and write, we should have two streams to handle read and write requests

@moham96 moham96 added the enhancement New feature or request label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant