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

Add option to check queued? loosely #2564

Merged
merged 2 commits into from
Aug 17, 2019
Merged

Conversation

ganmacs
Copy link
Member

@ganmacs ganmacs commented Aug 15, 2019

Which issue(s) this PR fixes:

What this PR does / why we need it:

synchronize is a bit heavy. so if no need to get a lock when getting the value
from @queue and @queue_num, Use optimistic option to check faster.
and @buffer.queued? in Output#emit_buffered is no need to get a value with a lock

Docs Changes:
no need

Release Note:

same as title

synchronize is a bit heavy. so if no need to get a lock when getting the value
from `@queue` and `@queue_num`, Use optimistic option to check faster.
and `@buffer.queued?` in Output#emit_buffered is no need to get

Signed-off-by: Yuta Iwama <[email protected]>
@ganmacs ganmacs added the enhancement Feature request or improve operations label Aug 15, 2019
@ganmacs ganmacs self-assigned this Aug 16, 2019
@repeatedly repeatedly merged commit 41fb79b into fluent:master Aug 17, 2019
@ganmacs ganmacs deleted the opt-queue branch August 19, 2019 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants