Skip to content

Minor performance improvements - #4294

Merged
ashie merged 4 commits into
fluent:masterfrom
isimluk:minor-perf
Sep 11, 2023
Merged

Minor performance improvements#4294
ashie merged 4 commits into
fluent:masterfrom
isimluk:minor-perf

Conversation

@isimluk

@isimluk isimluk commented Sep 8, 2023

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Dunno. Minor perf improvements never hurt badly.

Signed-off-by: Šimon Lukašík <isimluk@fedoraproject.org>
Signed-off-by: Šimon Lukašík <isimluk@fedoraproject.org>
Signed-off-by: Šimon Lukašík <isimluk@fedoraproject.org>
Signed-off-by: Šimon Lukašík <isimluk@fedoraproject.org>
@isimluk isimluk changed the title Minor perf Minor performance improvements Sep 9, 2023
Comment thread lib/fluent/registry.rb
if @dir_search_prefix
path = "#{@dir_search_prefix}#{type}"
files = @paths.map { |lp|
files = @paths.filter_map { |lp|

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: filter_map is available as of Ruby 2.7.
Recently we changed required Ruby version to 2.7, so it's no problem to use it: #4288

@ashie
ashie merged commit 7da3f79 into fluent:master Sep 11, 2023
@ashie

ashie commented Sep 11, 2023

Copy link
Copy Markdown
Member

Thanks!

@daipom daipom modified the milestone: v1.16.3 Oct 10, 2023
@daipom daipom added this to the v1.17.0 milestone Oct 30, 2023
@Watson1978 Watson1978 mentioned this pull request Dec 9, 2025
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