[
https://issues.apache.org/jira/browse/AVRO-3112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338037#comment-17338037
]
ASF subversion and git services commented on AVRO-3112:
-------------------------------------------------------
Commit ad4083b097257ac72e5cf32985e757aa09107b6e in avro's branch
refs/heads/master from Tim Perkins
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=ad4083b ]
AVRO-3112: Freeze string literals for Ruby (#1190)
> Freeze string literals for Ruby
> -------------------------------
>
> Key: AVRO-3112
> URL: https://issues.apache.org/jira/browse/AVRO-3112
> Project: Apache Avro
> Issue Type: Task
> Components: ruby
> Affects Versions: 1.10.2
> Reporter: Tim Perkins
> Assignee: Tim Perkins
> Priority: Minor
>
> Since Ruby 2.3 there has been an option to freeze all string literals. This
> improves both performance by eliminating unnecessary allocations for
> duplicate strings and reliability by preventing mutation of values.
> A comment can be added to the top of each Ruby file to freeze all string
> literals:
> {code:java}
> # frozen_string_literal: true{code}
> The RuboCop linting tool can be used to used to ensure that this is present
> for all files. Additional checks can be used to identity and remove existing
> calls to `.freeze` that are redundant once this comment is added.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)