aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-03-19 15:11:50 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-03-19 15:11:50 +0900
commit5f2ec224e9603770b05e594c73877eaf2cc94b82 (patch)
treefb76e4b0ab61345cedc612959a3983febe20572a /configure.ac
parentedje: let's not segfault when we remove a non existant callback. (diff)
downloadefl-5f2ec224e9603770b05e594c73877eaf2cc94b82.tar.gz
eina: speed up Eina_Cow.
* Use Eina_Hash instead of Eina_List to remember what memory did change. * Turn off Eina_Cow use of Eina_Magic when doing a release as it is only used internaly and we should not make any mistake there.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b4c07cf09c..21cfd2075e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -620,6 +620,7 @@ case "${build_profile}" in
want_debug_malloc="no"
want_debug_threads="no"
want_default_mempool="no"
+ want_cow_magic="yes"
;;
debug)
@@ -629,6 +630,7 @@ case "${build_profile}" in
want_debug_malloc="yes"
want_debug_threads="yes"
want_default_mempool="yes"
+ want_cow_magic="yes"
;;
release)
@@ -638,6 +640,7 @@ case "${build_profile}" in
want_debug_malloc="no"
want_debug_threads="no"
want_default_mempool="no"
+ want_cow_magic="no"
;;
esac
@@ -695,6 +698,10 @@ AC_DEFINE_IF([EINA_DEBUG_MALLOC],
[test "x${ac_cv_func_malloc_usable_size}" = "xyes" && test "x${want_debug_malloc}" = "xyes"],
[1], [Turn on debugging overhead in mempool])
+AC_DEFINE_IF([EINA_COW_MAGIC_ON],
+ [test "x${want_cow_magic}" = "xyes" ],
+ [1], [Turn on Eina_Magic in Eina_Cow])
+
EFL_OPTIONAL_DEPEND_PKG([EINA], [${want_systemd}], [SYSTEMD], [libsystemd-journal])
EFL_EVAL_PKGS([EINA])