From e623ccf921b8a325aa91bc687bd057f442156d65 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 3 Sep 2019 16:10:56 +0200 Subject: [PATCH] Intern ActiveJob queue_name Memory profiling shows that the queue name is always duplicated ``` Retained String Report ----------------------------------- ... 217 "default" 200 /tmp/bundle/ruby/2.6.0/bundler/gems/rails-59e746d4d07b/activejob/lib/active_job/queue_name.rb:52 ``` --- activejob/lib/active_job/queue_name.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activejob/lib/active_job/queue_name.rb b/activejob/lib/active_job/queue_name.rb index de259261de..a718397db4 100644 --- a/activejob/lib/active_job/queue_name.rb +++ b/activejob/lib/active_job/queue_name.rb @@ -49,7 +49,7 @@ module ActiveJob def queue_name_from_part(part_name) #:nodoc: queue_name = part_name || default_queue_name name_parts = [queue_name_prefix.presence, queue_name] - name_parts.compact.join(queue_name_delimiter) + -name_parts.compact.join(queue_name_delimiter) end end