rust version iterator based, 3.5 MB memory turning 5 GB frames to files on disk, 10MiB/second

This commit is contained in:
Alon Levy
2023-12-31 01:20:44 +02:00
parent ade93550ad
commit 5f5834835c
3 changed files with 131 additions and 90 deletions

View File

@@ -5,7 +5,7 @@ import numpy as np
import matplotlib.pyplot as plt
root = Path('frames')
root.mkdir(exist_ok=True)
frames = decode('in.pcap', 'frames')
frames = list(decode('in.pcap'))
f = np.array(frames[0])
f.shape = (384, 288)
plt.imshow(f)