-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove @metadata_list
from buffer.rb
#2563
Conversation
it is not used and a bit large overhead for performance. Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
I noticed fluentd/lib/fluent/plugin/buffer.rb Line 265 in f2b24f5
|
lib/fluent/plugin/buffer.rb
Outdated
end | ||
log.trace "chunk purged", instance: self.object_id, chunk_id: dump_unique_id_hex(chunk_id), metadata: metadata | ||
end | ||
|
||
if metadata && metadata.timekey | ||
@mutex.synchronize { del_timekey(metadata.timekey) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mutex.synchronize
is called in del_timekey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about it! thanks.
.5c81b40
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Signed-off-by: Yuta Iwama <[email protected]>
Looks good. |
Which issue(s) this PR fixes:
Fixes #
What this PR does / why we need it:
I removed
@metada_list
from buffer.rb since this ivar has almost no meaning. Moreover, this is an overhead since Buffer#add_metadata is called many times.Docs Changes:
no need
Release Note:
same as title