Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enforce Style/FrozenStringLiteralComment #6265
The frozen_string_literal: true magic comment in Ruby can help
Using the output of
With this patch, we allocate 4,276 fewer pages, and 1,743,399 fewer objects. Holy smokes! That's huge savings.
The frozen_string_literal: true magic comment in Ruby can help dramatically decrease memory allocations for new strings and can thusly speed up your program. The intent here is for Jekyll to use less memory and make fewer memory allocations (which must later be GC'd).