jsw0528/rails_emoji — pull request #2 by ursm (2012-09-04 19:29:55+00:00)
Title: use Set instead of Array for better performance

``` ruby
Benchmark.bm do |x|
x.report(RailsEmoji::EMOJI.class) { 1000000.times { 'foo'.emojify } }
end
```

```
user system total real
Array 1.850000 0.000000 1.850000 ( 1.853771)
Array 1.880000 0.000000 1.880000 ( 1.888836)
Array 1.850000 0.000000 1.850000 ( 1.865625)
Array 1.860000 0.000000 1.860000 ( 1.868596)

user system total real
Set 1.640000 0.000000 1.640000 ( 1.653069)
Set 1.680000 0.000000 1.680000 ( 1.694423)
Set 1.630000 0.000000 1.630000 ( 1.631746)
```

only slightly improved :wink: