diff options
-rw-r--r-- | lib/block_allocator.cpp | 4 | ||||
-rw-r--r-- | lib/gras_impl/debug.hpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/block_allocator.cpp b/lib/block_allocator.cpp index 5f45dd0..5e24a00 100644 --- a/lib/block_allocator.cpp +++ b/lib/block_allocator.cpp @@ -21,9 +21,9 @@ using namespace gnuradio; -const size_t AT_LEAST_DEFAULT_ITEMS = 1024*2; +const size_t AT_LEAST_DEFAULT_ITEMS = 1 << 14; const size_t AHH_TOO_MANY_BYTES = 1 << 16; //TODO -const size_t THIS_MANY_BUFFERS = 8; +const size_t THIS_MANY_BUFFERS = 32; const double EDGE_CASE_MITIGATION = 8.0; //edge case mitigation constant //TODO will need more complicated later diff --git a/lib/gras_impl/debug.hpp b/lib/gras_impl/debug.hpp index 210ac7a..c235c1f 100644 --- a/lib/gras_impl/debug.hpp +++ b/lib/gras_impl/debug.hpp @@ -24,13 +24,18 @@ #define ARMAGEDDON 0 #define MESSAGE 0 #define WORK 0 +#define ASSERTING 0 #define HERE() std::cerr << __FILE__ << ":" << __LINE__ << std::endl << std::flush; #define VAR(x) std::cerr << #x << " = " << (x) << std::endl << std::flush; +#ifdef ASSERTING #define ASSERT(x) {if(not (x)) \ { \ std::cerr << "ASSERT FAIL " << __FILE__ << ":" << __LINE__ << "\n\t" << #x << std::endl << std::flush; \ throw std::runtime_error(std::string("ASSERT FAIL ") + #x); \ }} +#else +#define ASSERT(x) +#endif #endif /*INCLUDED_LIBGRAS_IMPL_DEBUG_HPP*/ |