Skip to content

Commit 4528b80

Browse files
committed
perf(inlet): drop the explanatory comment on the bulk slice
The rationale lives in the commit history; the code itself does not need it. Addresses review feedback on #111.
1 parent 593ef50 commit 4528b80

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/pylsl/inlet.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,6 @@ def pull_chunk(self, timeout=0.0, max_samples=1024, dest_obj=None):
265265
# future, e.g., a numpy array)
266266
num_samples = num_elements // num_channels
267267
if dest_obj is None:
268-
# Convert the whole ctypes buffer to a Python list in a single
269-
# bulk slice (far faster than indexing the array element by
270-
# element), then split it into one list per sample.
271268
flat = data_buff[:num_elements]
272269
samples = [
273270
flat[s * num_channels : (s + 1) * num_channels]

0 commit comments

Comments
 (0)