perfparameters.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef PERFPARAMETERS_H_
  2. #define PERFPARAMETERS_H_
  3. #include <stdbool.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. namespace roaring {
  7. namespace internal {
  8. #endif
  9. /**
  10. During lazy computations, we can transform array containers into bitset
  11. containers as
  12. long as we can expect them to have ARRAY_LAZY_LOWERBOUND values.
  13. */
  14. enum { ARRAY_LAZY_LOWERBOUND = 1024 };
  15. /* default initial size of a run container
  16. setting it to zero delays the malloc.*/
  17. enum { RUN_DEFAULT_INIT_SIZE = 0 };
  18. /* default initial size of an array container
  19. setting it to zero delays the malloc */
  20. enum { ARRAY_DEFAULT_INIT_SIZE = 0 };
  21. /* automatic bitset conversion during lazy or */
  22. #ifndef LAZY_OR_BITSET_CONVERSION
  23. #define LAZY_OR_BITSET_CONVERSION true
  24. #endif
  25. /* automatically attempt to convert a bitset to a full run during lazy
  26. * evaluation */
  27. #ifndef LAZY_OR_BITSET_CONVERSION_TO_FULL
  28. #define LAZY_OR_BITSET_CONVERSION_TO_FULL true
  29. #endif
  30. /* automatically attempt to convert a bitset to a full run */
  31. #ifndef OR_BITSET_CONVERSION_TO_FULL
  32. #define OR_BITSET_CONVERSION_TO_FULL true
  33. #endif
  34. #ifdef __cplusplus
  35. }
  36. }
  37. } // extern "C" { namespace roaring { namespace internal {
  38. #endif
  39. #endif