From b844bcc92ca53c6d9c7898a54de546b900b9dbdb Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 10 Feb 2011 18:26:11 -0800 Subject: uhd: set BOOST_SP_USE_QUICK_ALLOCATOR for managed buffer overhead, hope this doesnt cause trouble later --- host/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/CMakeLists.txt') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 6b2ac4e64..baa5ab662 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -62,6 +62,10 @@ IF(NOT CMAKE_BUILD_TYPE) MESSAGE(STATUS "Build type not specified: defaulting to release.") ENDIF(NOT CMAKE_BUILD_TYPE) +#Creating a shared pointer itself has allocation overhead. +#Define the quick allocator to reduce fast-path overhead. +ADD_DEFINITIONS(-DBOOST_SP_USE_QUICK_ALLOCATOR) + IF(CMAKE_COMPILER_IS_GNUCXX) ADD_DEFINITIONS(-Wall) ADD_DEFINITIONS(-Wextra) -- cgit v1.2.3