Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0a802bd7
Commit
0a802bd7
authored
Oct 22, 2010
by
antirez
Browse files
support for compiling with tcmalloc
parent
75fcab8c
Changes
2
Show whitespace changes
Inline
Side-by-side
README
View file @
0a802bd7
...
...
@@ -27,6 +27,21 @@ After you build Redis is a good idea to test it, using:
% make test
Buliding using tcmalloc
-----------------------
tcmalloc is a fast and space efficient implementation of malloc(). Compiling
Redis with it can improve performances and memeory usage. You can read
more about it here: http://goog-perftools.sourceforge.net/doc/tcmalloc.html
In order to compile Redis with tcmalloc support install tcmalloc on your system
and then use:
% make USE_TCMALLOC=yes
Note that you can pass any other target to make, as long as you append
USE_TCMALLOC=yes at the end.
Running Redis
-------------
...
...
src/Makefile
View file @
0a802bd7
...
...
@@ -12,6 +12,10 @@ else
CFLAGS
?=
-std
=
c99
-pedantic
$(OPTIMIZATION)
-Wall
-W
$(ARCH)
$(PROF)
CCLINK
?=
-lm
-pthread
endif
ifeq
($(USE_TCMALLOC),yes)
CCLINK
+=
-ltcmalloc
endif
CCOPT
=
$(CFLAGS)
$(CCLINK)
$(ARCH)
$(PROF)
DEBUG
?=
-g
-rdynamic
-ggdb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment