const_cache
Cache slow constant lookups in a static data structure to speed up application launch in RubyMotion apps.
Installation
Add this line to your application's Gemfile:
gem 'const_cache'
And then execute:
$ bundle
Or install it yourself as:
$ gem install const_cache
Usage
There is nothing to do except require the gem. It will generate an app/_const_cache.rb
file at runtime that is compiled on the next build that populates the constant cache on launch.
Contributing
- 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