mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-12-26 21:31:34 +00:00
Vectorizing does not help, the array is not big enough to amortize the
python overheads.
This commit is contained in:
parent
bf2057cbb9
commit
44f8ab39e4
@ -363,7 +363,6 @@ class Video:
|
|||||||
candidate_offsets = self._OFFSETS[cond]
|
candidate_offsets = self._OFFSETS[cond]
|
||||||
priorities = delta_page[cond]
|
priorities = delta_page[cond]
|
||||||
|
|
||||||
# TODO: vectorize this with numpy
|
|
||||||
deltas = [
|
deltas = [
|
||||||
(priorities[i], random.getrandbits(16), candidate_offsets[i])
|
(priorities[i], random.getrandbits(16), candidate_offsets[i])
|
||||||
for i in range(len(candidate_offsets))
|
for i in range(len(candidate_offsets))
|
||||||
|
Loading…
Reference in New Issue
Block a user