stream_extract(Data, [Pos1, Pos2, ...], Size)
- Extract fixed length records
- Data is the binary representing a database
- Pos list contains starting positions of extracts
- Size is the number of bytes for each extract
- Returns a list of sub-binaries
- Performance
- Extracted 1000 random records of 20 and 5000 bytes from a 500K byte binary
- stream_extract was 7x faster than bit-syntax approach
- HiPE compiling bit-syntax crashed with 500K binary, but not with 500 bytes