Use `sub` as we only need to substitute once. #595

merged 1 commit into from Aug 22, 2013


None yet
2 participants

benpickles commented Aug 20, 2013

I hope you like micro optimisations...

           user     system      total        real
gsub   0.030000   0.000000   0.030000 (  0.024439)
sub    0.000000   0.000000   0.000000 (  0.008700)

spastorino added a commit that referenced this pull request Aug 22, 2013

Merge pull request #595 from benpickles/use-sub-not-gsub
Use `sub` as we only need to substitute once.

@spastorino spastorino merged commit 53e927c into rack:master Aug 22, 2013

1 check passed

default The Travis CI build passed

@benpickles benpickles deleted the benpickles:use-sub-not-gsub branch Aug 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment