Actions
Patch #29363
closedUse String#tr instead of String#gsub
Description
String#tr is more than 3 times faster than String#gsub when replacing a single character in a string with another single character.
https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
Files
Updated by Go MAEDA about 5 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed.
Updated by Go MAEDA about 5 years ago
- Target version changed from 4.1.0 to 4.0.0
Actions