Skip to content

Commit eba1c4f

Browse files
dodamihakhileshh
authored andcommitted
hotfix: exponentials start at 1
1 parent 98b4282 commit eba1c4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pychunkedgraph/graph/edits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def _create_new_parents(self, layer: int):
818818

819819
chunk_id = self.cg.get_parent_chunk_id(cc_ids[0], parent_layer)
820820
is_root = parent_layer == self.cg.meta.layer_count
821-
batch_size = 4096
821+
batch_size = 1
822822
parent = None
823823
with self._profiler.profile("create_and_verify_node_id"):
824824
while parent is None:
@@ -831,7 +831,7 @@ def _create_new_parents(self, layer: int):
831831
parent = cid
832832
break
833833
if parent is None:
834-
batch_size *= 2
834+
batch_size = min(batch_size * 2, 2**16)
835835

836836
self._new_ids_d[parent_layer].append(parent)
837837
self._update_id_lineage(parent, cc_ids, layer, parent_layer)

0 commit comments

Comments
 (0)