Join GitHub today
Use `#tr` instead of `#gsub` in Journey scanner #17257
@claudiob according to many benchmarks when you want to replace a single character (no regexp) by another one then
Here is a good example: https://gist.github.com/dominikh/208033 but I'm pretty sure you can find more benchmarks and blog posts about this topic. I'm not a big fan of benchmarks because it really depends on the context and how you're going to use the method / algorithm.
In the case of
If you find yourself chaining multiple
Hope it answer (partially) to you curiosity.