OPNSense/core 0bdbdf7src/opnsense/scripts/netflow/lib flowparser.py

netflow, improve log parser performance, cache some calculations.

In theory we could probably increase performance even more by limitting the number of calls to struct.unpack, but this will make it more difficult to read.
This version is about 30% faster then the original C version shipped with flowd.

Some more testing todo, but preliminary results look good.
DeltaFile
+21-12src/opnsense/scripts/netflow/lib/flowparser.py
+21-121 files

UnifiedSplitRaw