Vectorizing does not help, the array is not big enough to amortize the

python overheads.
This commit is contained in:
kris 2019-06-15 21:30:25 +01:00
parent bf2057cbb9
commit 44f8ab39e4

View File

@ -363,7 +363,6 @@ class Video:
candidate_offsets = self._OFFSETS[cond]
priorities = delta_page[cond]
# TODO: vectorize this with numpy
deltas = [
(priorities[i], random.getrandbits(16), candidate_offsets[i])
for i in range(len(candidate_offsets))