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

IOFiber extends AtomicBoolean #1600

Merged
merged 1 commit into from
Jan 18, 2021
Merged

IOFiber extends AtomicBoolean #1600

merged 1 commit into from
Jan 18, 2021

Conversation

vasilmkd
Copy link
Member

It has been said that operations in the run loop, apart from allocating new IO objects, are instantaneous. This should help out with both allocations and speed.

Benchmarks:

series/3.x:
Benchmark             (size)   Mode  Cnt      Score     Error  Units
AsyncBenchmark.async     100  thrpt   10  19675.613 ± 379.777  ops/s
this PR:
Benchmark             (size)   Mode  Cnt      Score     Error  Units
AsyncBenchmark.async     100  thrpt   10  20235.886 ± 252.208  ops/s

@djspiewak
Copy link
Member

Very very cool

@djspiewak djspiewak merged commit 2662828 into typelevel:series/3.x Jan 18, 2021
@vasilmkd vasilmkd deleted the runloop branch January 18, 2021 21:35
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.

None yet

2 participants