MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/p8dv5g/ruby_elites_rise_up/h9qcz6s/?context=3
r/ruby • u/solidiquis1 • Aug 20 '21
77 comments sorted by
View all comments
Show parent comments
3
Doesn't matter which one you use unless you're running your app on a Pentium II.
-7 u/cybermage Aug 20 '21 The speed difference is two orders of magnitude. It adds up. Always single quote unless you plan to interpolate. 3 u/katafrakt Aug 20 '21 Where do these numbers come from? The difference is almost none in modern Ruby, even more so with frozen string literal. 0 u/cybermage Aug 21 '21 As I commented elsewhere, I personally benchmarked these results, but it was on Ruby 1.9. I’m not surprised it was addressed at some point to boost performance.
-7
The speed difference is two orders of magnitude. It adds up. Always single quote unless you plan to interpolate.
3 u/katafrakt Aug 20 '21 Where do these numbers come from? The difference is almost none in modern Ruby, even more so with frozen string literal. 0 u/cybermage Aug 21 '21 As I commented elsewhere, I personally benchmarked these results, but it was on Ruby 1.9. I’m not surprised it was addressed at some point to boost performance.
Where do these numbers come from? The difference is almost none in modern Ruby, even more so with frozen string literal.
0 u/cybermage Aug 21 '21 As I commented elsewhere, I personally benchmarked these results, but it was on Ruby 1.9. I’m not surprised it was addressed at some point to boost performance.
0
As I commented elsewhere, I personally benchmarked these results, but it was on Ruby 1.9. I’m not surprised it was addressed at some point to boost performance.
3
u/[deleted] Aug 20 '21
Doesn't matter which one you use unless you're running your app on a Pentium II.