I have this code where I'm setting all the bytes in seg to 0.
for b in s_row..s_row+KB-1: seg[b] = 0
Can I do something like: seg[a..b] = 0
Then I have this code that counts all the 0 in seg
for k in 0..Kn-1: (if seg[s_row+k] == 0: sum += 1)
Is there a way to do something like this: sum = seg[a..b].count(0)
If so, would they be faster than the current code constructs?