Commit 48a6ae87 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Store ints in bytearrays for faster copying

parent 9117b767
...@@ -46,7 +46,8 @@ class State: ...@@ -46,7 +46,8 @@ class State:
colskip = get_colskip(blocks) colskip = get_colskip(blocks)
busy = get_busy(blocks, colskip) busy = get_busy(blocks, colskip)
groups, groupsizes, maxgroup = get_groups(blocks) 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): def copy(self, deep):
mcopy = copy if deep else lambda x: x mcopy = copy if deep else lambda x: x
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment