![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/thread-self/root/usr/include/boost/sort/spreadsort/detail/ |
Upload File : |
//constant definitions for the Boost Sort library // Copyright Steven J. Ross 2001 - 2014 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/sort for library home page. #ifndef BOOST_SORT_SPREADSORT_DETAIL_CONSTANTS #define BOOST_SORT_SPREADSORT_DETAIL_CONSTANTS namespace boost { namespace sort { namespace spreadsort { namespace detail { //Tuning constants //This should be tuned to your processor cache; //if you go too large you get cache misses on bins //The smaller this number, the less worst-case memory usage. //If too small, too many recursions slow down spreadsort enum { max_splits = 11, //It's better to have a few cache misses and finish sorting //than to run another iteration max_finishing_splits = max_splits + 1, //Sets the minimum number of items per bin. int_log_mean_bin_size = 2, //Used to force a comparison-based sorting for small bins, if it's faster. //Minimum value 1 int_log_min_split_count = 9, //This is the minimum split count to use spreadsort when it will finish in one //iteration. Make this larger the faster boost::sort::pdqsort is relative to integer_sort. int_log_finishing_count = 31, //Sets the minimum number of items per bin for floating point. float_log_mean_bin_size = 2, //Used to force a comparison-based sorting for small bins, if it's faster. //Minimum value 1 float_log_min_split_count = 8, //This is the minimum split count to use spreadsort when it will finish in one //iteration. Make this larger the faster boost::sort::pdqsort is relative to float_sort. float_log_finishing_count = 4, //There is a minimum size below which it is not worth using spreadsort min_sort_size = 1000 }; } } } } #endif