Adds frozen_string_literal: true directive to all files, allowing Ruby to refer to allocate them once and refer in its hash table to that same string, reducing overall memory usage for this library.
Also moves strings to constants where appropriate to do so.
What?
Adds
frozen_string_literal: true
directive to all files, allowing Ruby to refer to allocate them once and refer in its hash table to that same string, reducing overall memory usage for this library.Also moves strings to constants where appropriate to do so.