MCPcopy Create free account
hub / github.com/dhbloo/rapfi / splitDatabase

Function splitDatabase

Rapfi/command/gomocup.cpp:1088–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088void splitDatabase()
1089{
1090 auto databasePath = readPathFromInput();
1091 if (Search::Threads.dbStorage()) {
1092 std::string dbPathUTF8 = databasePath.u8string();
1093 if (auto dbToSplit = Config::createDefaultDBStorage(dbPathUTF8)) {
1094 auto startTime = now();
1095 size_t writeCount = ::Database::splitDatabase(*Search::Threads.dbStorage(),
1096 *dbToSplit,
1097 *board,
1098 options.rule);
1099 auto endTime = now();
1100 MESSAGEL("Write " << writeCount << " records into the spilted database using "
1101 << (endTime - startTime) << " ms.");
1102 }
1103 }
1104}
1105
1106void mergeDatabase()
1107{

Callers 1

databaseMethod · 0.70

Calls 3

readPathFromInputFunction · 0.85
nowFunction · 0.85
dbStorageMethod · 0.80

Tested by

no test coverage detected