3 ms·
Has anyone actually benchmarked the use of frozen string literals? I feel like this is one of those micro-optimizations that everyone does, but they're probably
by phendrenad2 1y ago
Has anyone actually benchmarked the use of frozen string literals? I feel like this is one of those micro-optimizations that everyone does, but they're probably accomplishing a diminishingly small performance improvement, while making the codebase less readable. On net, a negative.
- byroot 1y agoYes: https://bugs.ruby-lang.org/issues/20205#note-34 https://bugs.ruby-lang.org/issues/20205#note-34
- phendrenad2 1y agoAh excellent. Seems like a modest performance improvement.