Skip to content
Snippets Groups Projects
Commit 48a6ae87 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Store ints in bytearrays for faster copying

parent 9117b767
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,8 @@ class State:
colskip = get_colskip(blocks)
busy = get_busy(blocks, colskip)
groups, groupsizes, maxgroup = get_groups(blocks)
return cls(blocks, exa, held, colskip, busy, (), groups, groupsizes, maxgroup)
return cls(bytearray(blocks), exa, held, bytearray(colskip), busy, (),
bytearray(groups), bytearray(groupsizes), maxgroup)
def copy(self, deep):
mcopy = copy if deep else lambda x: x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment