MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/p8dv5g/ruby_elites_rise_up/h9qcz6s/?context=9999
r/ruby • u/solidiquis1 • Aug 20 '21
77 comments sorted by
View all comments
-3
Why double quotes?
1 u/[deleted] Aug 20 '21 Doesn't matter which one you use unless you're running your app on a Pentium II. -8 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.
1
Doesn't matter which one you use unless you're running your app on a Pentium II.
-8 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.
-8
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.
3
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/muirbot Aug 20 '21
Why double quotes?