Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

[Android/IOS] stream copy very slow #50

Closed
tanersener opened this issue Dec 8, 2018 · 2 comments
Closed

[Android/IOS] stream copy very slow #50

tanersener opened this issue Dec 8, 2018 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request fixed

Comments

@tanersener
Copy link
Owner

Copying an input file is expected to complete fast since it does no contain any encoding/decoding.

Unfortunately this is not the case in IOS v3.0 release. -i input_path -c copy output_path command completes in 34 seconds by default. If redirection is disabled then copying completes in 1.5 seconds. This means that enabling log/statistics redirection slows down the copying operation. Reason of this case should be analyzed.

Additional testing confirms that only copy mode (-c copy) is affected from this issue. The speed of other operations is not effected by enabling/disabling redirection.

@tanersener tanersener added the enhancement New feature or request label Dec 8, 2018
@tanersener tanersener self-assigned this Dec 8, 2018
@tanersener tanersener added the bug Something isn't working label Dec 8, 2018
@tanersener tanersener changed the title [IOS] stream copy very slow [Android/IOS] stream copy very slow Dec 8, 2018
@tanersener
Copy link
Owner Author

On Android the same copy command completes in 4.3 seconds by default. If redirection is disabled duration decreases to 1.2 seconds. This decrease should be analyzed too.

@tanersener
Copy link
Owner Author

tanersener commented Dec 9, 2018

Analysis shows that log level validation for log callbacks is performed too late. This causes too many (unwanted) low severity log messages to be processed, which decreases the whole processing speed. Log level validation should be performed as early as possible not to have a performance decrease.

ps: Both platforms suffer from this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request fixed
Projects
None yet
Development

No branches or pull requests

1 participant