We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee589a6 commit d352be1Copy full SHA for d352be1
chia/data_layer/data_store.py
@@ -59,6 +59,7 @@
59
unspecified,
60
)
61
from chia.util.batches import to_batches
62
+from chia.util.cpu import available_logical_cores
63
from chia.util.db_wrapper import SQLITE_MAX_VARIABLE_NUMBER, DBWrapper2
64
from chia.util.log_exceptions import log_exceptions
65
from chia.util.lru_cache import LRUCache
@@ -299,8 +300,7 @@ async def build_cache_and_collect_missing_hashes(
299
300
301
current_generation = generations[-1] + 1
302
- # TODO: at least shouldn't be hard coded
303
- batch_size = 10
+ batch_size = available_logical_cores()
304
generations = range(
305
current_generation,
306
min(current_generation + batch_size, root.generation),
0 commit comments