Skip to content

Commit

Permalink
Freeze string literals in AutoInstrument layer
Browse files Browse the repository at this point in the history
I think if you have a lot of AutoInstrumentation going on, this results in a lot of repeated memory allocations for the same string.
  • Loading branch information
ibrahima committed Mar 22, 2024
1 parent bf9fb4b commit eec8c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/scout_apm/auto_instrument/layer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true

module ScoutApm
def self.AutoInstrument(name, backtrace)
Expand Down

0 comments on commit eec8c3e

Please sign in to comment.