jemalloc_rb 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +29 -0
- data/README.md +9 -11
- data/ext/jemalloc/extconf.rb +1 -1
- data/ext/jemalloc/jemalloc-5.3.1.tar.bz2 +0 -0
- data/{ext/jemalloc/jemalloc-5.2.1.tar.bz2 → jemalloc_rb-1.0.0.gem} +0 -0
- data/jemalloc_rb.png +0 -0
- data/lib/jemalloc_rb/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b19fb47439c75068e009c62dfe9c2b9ac9a186cded19bbf9480a1382bdf71058
|
|
4
|
+
data.tar.gz: 842bbb1a554852e057baa0342cca0816e2dcc3bdbb506b7b34a6e8e836e974a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02cb688113d8d9239e8f5b23ebc601b8aea1c96fa0f9d933e735ac312cdb96710229cda0b35af1bc6bf144aa4dc2fe09c37b945f91d96bf3e167522a83d086ff
|
|
7
|
+
data.tar.gz: 8ab5d843e9e79a0174a0b4a417e33f9beaf29520e26c79cd79d3e14f26f0474406ddd132c249209a18a3a211393b2fd3863d2968ea73a97b054f61f0e6f2ad3b
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
jemalloc is released under the terms of the following BSD-derived license:
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2002-2015 Jason Evans <jasone@canonware.com>.
|
|
4
|
+
All rights reserved.
|
|
5
|
+
Copyright (C) 2007-2012 Mozilla Foundation. All rights reserved.
|
|
6
|
+
Copyright (C) 2009-2015 Facebook, Inc. All rights reserved.
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without
|
|
9
|
+
modification, are permitted provided that the following conditions are met:
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice(s),
|
|
11
|
+
this list of conditions and the following disclaimer.
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice(s),
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY EXPRESS
|
|
17
|
+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
19
|
+
EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
20
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
21
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
23
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
24
|
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
25
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
|
|
27
|
+
Copyright © 2015 Jason Evans <jasone@canonware.com>.
|
|
28
|
+
|
|
29
|
+
Last updated 2015/08/13.
|
data/README.md
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
# jemalloc_rb
|
|
4
4
|
|
|
5
|
-
Instant [jemalloc](https://jemalloc.net/) injection into Ruby apps, for better performance and less memory.
|
|
5
|
+
Instant [jemalloc](https://jemalloc.net/) injection into Ruby apps, for better performance and less memory. Compatible with the latest versions of Ruby.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
*This is a fork of https://github.com/kzk/jemalloc-rb (which appears to no longer be maintained). This repository was created to keep the jemalloc (now jemalloc_rb) gem active and open to pull requests.*
|
|
8
|
+
|
|
9
|
+
## Why?
|
|
8
10
|
|
|
9
11
|
Ruby relies on malloc(3) for its internal memory allocation. Using better malloc() implementation will boost your application performance, and supress the memory usage.
|
|
10
12
|
|
|
11
13
|
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.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Why jemalloc_rb?
|
|
14
16
|
|
|
15
17
|
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 `jemalloc_rb` gem, and launch your app with `je` command.
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
## Install
|
|
18
20
|
|
|
19
21
|
Install `jemalloc_rb` gem in your application. For [bundler](http://gembundler.com/) based application, please add the following line into your Gemfile, and and install `jemalloc_rb` by `bundle install`.
|
|
20
22
|
|
|
21
23
|
gem 'jemalloc_rb'
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
## Usage
|
|
24
26
|
|
|
25
27
|
Execute your application with `je` command, which is contained in `je` gem. Example command for Rails + bundler application is like follows.
|
|
26
28
|
|
|
@@ -33,10 +35,6 @@ Execute your application with `je` command, which is contained in `je` gem. Exam
|
|
|
33
35
|
=> Booting WEBrick
|
|
34
36
|
...
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
## Limitation
|
|
37
39
|
|
|
38
40
|
Currently, this gem works only on Linux and Mac OS X.
|
|
39
|
-
|
|
40
|
-
# License
|
|
41
|
-
|
|
42
|
-
[BSD-derived License](http://www.canonware.com/jemalloc/license.html).
|
data/ext/jemalloc/extconf.rb
CHANGED
|
Binary file
|
|
Binary file
|
data/jemalloc_rb.png
ADDED
|
Binary file
|
data/lib/jemalloc_rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jemalloc_rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henrique F. Teixeira
|
|
@@ -63,12 +63,15 @@ files:
|
|
|
63
63
|
- ChangeLog
|
|
64
64
|
- Gemfile
|
|
65
65
|
- Gemfile.lock
|
|
66
|
+
- LICENSE.txt
|
|
66
67
|
- README.md
|
|
67
68
|
- Rakefile
|
|
68
69
|
- bin/je
|
|
69
70
|
- ext/jemalloc/extconf.rb
|
|
70
|
-
- ext/jemalloc/jemalloc-5.
|
|
71
|
+
- ext/jemalloc/jemalloc-5.3.1.tar.bz2
|
|
72
|
+
- jemalloc_rb-1.0.0.gem
|
|
71
73
|
- jemalloc_rb.gemspec
|
|
74
|
+
- jemalloc_rb.png
|
|
72
75
|
- lib/jemalloc_rb/version.rb
|
|
73
76
|
homepage: https://github.com/henrique-ft/jemalloc_rb
|
|
74
77
|
licenses: []
|