Skip to content

Remove blocking around reading each element#1184

Merged
Avasil merged 1 commit into
monix:masterfrom
vasily-kirichenko:fix-too-fine-graned-blocking
May 15, 2020
Merged

Remove blocking around reading each element#1184
Avasil merged 1 commit into
monix:masterfrom
vasily-kirichenko:fix-too-fine-graned-blocking

Conversation

@vasily-kirichenko

Copy link
Copy Markdown
Contributor

Removed blocking around reading each element in CharsReaderObservable, InputStreamObservable and LinesReaderObservable because it has a big performance overhead.

In a test that reads 3GB, 95M lines file LinesReaderObservable did ~400K lines per seconds before this fix, and ~7M lines per second after the fix (~17 times faster).

…le, InputStreamObservable and LinesReaderObservable because it has big performance overhead
@alexandru

Copy link
Copy Markdown
Member

Oh wow, thanks @vasily-kirichenko for spotting this!

@Avasil Avasil merged commit d77a825 into monix:master May 15, 2020
@vasily-kirichenko vasily-kirichenko deleted the fix-too-fine-graned-blocking branch May 15, 2020 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants