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

Minor performance improvements #4294

Merged
merged 4 commits into from
Sep 11, 2023
Merged

Minor performance improvements #4294

merged 4 commits into from
Sep 11, 2023

Conversation

isimluk
Copy link
Contributor

@isimluk isimluk commented Sep 8, 2023

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

@isimluk isimluk changed the title Minor perf Minor performance improvements Sep 9, 2023
@@ -60,31 +60,31 @@ def search(type)
# search from additional plugin directories
if @dir_search_prefix
path = "#{@dir_search_prefix}#{type}"
files = @paths.map { |lp|
files = @paths.filter_map { |lp|
Copy link
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
12 of 16 checks passed
@ashie
Copy link
Member

ashie commented Sep 11, 2023

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
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