diff --git a/include/boost/detail/quick_allocator.hpp b/include/boost/detail/quick_allocator.hpp index 2d8d735..195e602 100644 --- a/include/boost/detail/quick_allocator.hpp +++ b/include/boost/detail/quick_allocator.hpp @@ -55,8 +55,16 @@ template struct allocator_impl // // The other alternative is to use much bigger pages (1M.) +#if defined(BOOST_QA_PAGE_SIZE) + + enum { items_per_page = BOOST_QA_PAGE_SIZE / size }; + +#else + enum { items_per_page = 496 / size }; // 1048560 / size +#endif + #ifdef BOOST_HAS_THREADS static lightweight_mutex mutex; #endif