Since most interactions only involve a single dimension, and then only small adjustments are made to the filter values, incremental filtering and reducing is significantly faster than starting from scratch. Crossfilter uses sorted indexes (and a few bit-twiddling hacks) to make this possible, dramatically increasing the performance of live histograms and top-K lists. Crossfilter is available under the Apache License.
Add the following to your gemfile:
And then execute:
//= require crossfilter
To ensure that you're including a gem with original code, you can install this gem using a HighSecurity policy.
gem cert --add <(curl -Ls https://gist.github.com/bai/5150087/raw/public_cert.pem) bundle install --trust-policy HighSecurity
Or, if you don't use bundler:
gem install crossfilter-rails -P HighSecurity
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request