Use faster ruby methods
Merge pull request #735 from jastix/master

Use faster ruby methods

See: https://speakerdeck.com/sferik/writing-fast-ruby