2017-01-23 05:50:03 -05:00
|
|
|
#ifndef PARTITIONER_CONFIG_HPP
|
|
|
|
#define PARTITIONER_CONFIG_HPP
|
|
|
|
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <string>
|
|
|
|
|
2017-04-29 04:43:36 -04:00
|
|
|
#include "storage/io_config.hpp"
|
|
|
|
|
2017-01-23 05:50:03 -05:00
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace partition
|
|
|
|
{
|
|
|
|
|
2017-04-29 04:43:36 -04:00
|
|
|
struct PartitionConfig final : storage::IOConfig
|
2017-01-23 05:50:03 -05:00
|
|
|
{
|
2017-03-27 06:17:01 -04:00
|
|
|
PartitionConfig()
|
|
|
|
: requested_num_threads(0), balance(1.2), boundary_factor(0.25), num_optimizing_cuts(10),
|
|
|
|
small_component_size(1000),
|
2017-06-05 02:34:44 -04:00
|
|
|
max_cell_sizes{128, 128 * 32, 128 * 32 * 16, 128 * 32 * 16 * 32},
|
|
|
|
IOConfig({".osrm", }, {}, {".osrm.ebg", ".osrm.cnbg", ".osrm.cnbg_to_ebg", ".osrm.partition", ".osrm.cells"})
|
|
|
|
{
|
|
|
|
}
|
2017-01-23 05:50:03 -05:00
|
|
|
|
|
|
|
unsigned requested_num_threads;
|
2017-01-26 11:53:19 -05:00
|
|
|
|
|
|
|
double balance;
|
|
|
|
double boundary_factor;
|
|
|
|
std::size_t num_optimizing_cuts;
|
2017-02-02 09:53:42 -05:00
|
|
|
std::size_t small_component_size;
|
2017-03-27 06:17:01 -04:00
|
|
|
std::vector<std::size_t> max_cell_sizes;
|
2017-01-23 05:50:03 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // PARTITIONER_CONFIG_HPP
|