You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ Comparison:
111
111
module_eval with string: 1129.7 i/s - 1.19x slower
112
112
```
113
113
114
-
##### `String#constantize` vs a comparison for inflection
114
+
##### `String#constantize` vs a comparison for inflection[code](code/general/constantize-vs-comparison.rb)
115
115
116
116
ActiveSupport's [String#constantize](https://guides.rubyonrails.org/active_support_core_extensions.html#constantize) "resolves the constant reference expression in its receiver".
117
117
@@ -1063,7 +1063,7 @@ Comparison:
1063
1063
Block: 47914.3 i/s - 1.14x slower
1064
1064
```
1065
1065
1066
-
##### `Proc#call` and block arguments vs `yield`[code](code/proc-and-block/proc-call-vs-yield.rb)
1066
+
##### `Proc#call` and block arguments vs `yield`[code](code/proc-and-block/proc-call-vs-yield.rb)
1067
1067
1068
1068
In MRI Ruby before 2.5, block arguments [are converted to Procs](https://www.omniref.com/ruby/2.2.0/symbols/Proc/yield?#annotation=4087638&line=711), which incurs a heap allocation.
1069
1069
@@ -1329,7 +1329,7 @@ Comparison:
1329
1329
String#gsub: 516604.2 i/s - 3.60x slower
1330
1330
```
1331
1331
1332
-
##### `String#gsub` vs `String#tr` vs `String#del`[code](code/string/gsub-vs-tr-vs-del.rb)
1332
+
##### `String#gsub` vs `String#tr` vs `String#delete`[code](code/string/gsub-vs-tr-vs-delete.rb)
0 commit comments