12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef PERFPARAMETERS_H_
- #define PERFPARAMETERS_H_
- #include <stdbool.h>
- #ifdef __cplusplus
- extern "C" {
- namespace roaring {
- namespace internal {
- #endif
- /**
- During lazy computations, we can transform array containers into bitset
- containers as
- long as we can expect them to have ARRAY_LAZY_LOWERBOUND values.
- */
- enum { ARRAY_LAZY_LOWERBOUND = 1024 };
- /* default initial size of a run container
- setting it to zero delays the malloc.*/
- enum { RUN_DEFAULT_INIT_SIZE = 0 };
- /* default initial size of an array container
- setting it to zero delays the malloc */
- enum { ARRAY_DEFAULT_INIT_SIZE = 0 };
- /* automatic bitset conversion during lazy or */
- #ifndef LAZY_OR_BITSET_CONVERSION
- #define LAZY_OR_BITSET_CONVERSION true
- #endif
- /* automatically attempt to convert a bitset to a full run during lazy
- * evaluation */
- #ifndef LAZY_OR_BITSET_CONVERSION_TO_FULL
- #define LAZY_OR_BITSET_CONVERSION_TO_FULL true
- #endif
- /* automatically attempt to convert a bitset to a full run */
- #ifndef OR_BITSET_CONVERSION_TO_FULL
- #define OR_BITSET_CONVERSION_TO_FULL true
- #endif
- #ifdef __cplusplus
- }
- }
- } // extern "C" { namespace roaring { namespace internal {
- #endif
- #endif
|