Skip to content

Commit

Permalink
Improve performance to_h method of Aws::Rails::SqsActiveJob::Configur…
Browse files Browse the repository at this point in the history
…ation object (#108)
  • Loading branch information
roharon authored Jan 10, 2024
1 parent e3083d9 commit 9218da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Unreleased Changes
------------------

* Issue - Improve `to_h` method's performance of `Aws::Rails::SqsActiveJob::Configuration`.

3.9.1 (2023-12-19)
------------------

Expand Down
2 changes: 1 addition & 1 deletion lib/aws/rails/sqs_active_job/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def to_s
def to_h
h = {}
instance_variables.each do |v|
v_sym = v.to_s.gsub('@', '').to_sym
v_sym = v.to_s.delete('@').to_sym
val = instance_variable_get(v)
h[v_sym] = val
end
Expand Down

0 comments on commit 9218da1

Please sign in to comment.