kzk/jemalloc-rb
소개
gem install jemalloc && bundle exec je ./script/rails s
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaljemalloc
Instant jemalloc injection into Ruby apps, for better performance and less memory.
Why jemalloc?
Ruby relies on malloc(3) for its internal memory allocation. Using better malloc() implementation will boost your application performance, and supress the memory usage.
jemalloc is a malloc(3) implementation, originally developed by Jason Evans. jemalloc handles small object better than other allocators so usually gives better performance and memory usage to Ruby programs.
Why jemalloc?
Installing jemalloc separately from Ruby is pain in some cases (e.g. Heroku, EngineYard, etc). je gem contains jemalloc itself within a gem, and enables instant jemalloc injection in a really easy way: install je gem, and launch your app with je command.
Install
Install jemalloc gem in your application. For bundler based application, please add the following line into your Gemfile, and and install jemalloc by bundle install.
gem 'jemalloc'
Usage
Execute your application with je command, which is contained in je gem. Example command for Rails + bundler application is like follows.
$ bundle exec je ./script/rails s
-v option will let you confirm jemalloc is actually injected.
$ bundle exec je -v ./script/rails s
=> Injecting jemalloc...
=> Booting WEBrick
...
Limitation
Currently, this gem works only on Linux and Mac OS X.
License
관련 프로젝트 살펴보기
불러오는 중…