Made readSubRecord consume part of a bytearray rather than copying the bytes every time via a slice.
This improves performance substantially (~3-4 times faster).
Unfortunately the performance of readSubRecord is still poor, likely due to creating a dictionary and copying strings into it every call.
Made readSubRecord consume part of a bytearray rather than copying the bytes every time via a slice. This improves performance substantially (~3-4 times faster).
Unfortunately the performance of readSubRecord is still poor, likely due to creating a dictionary and copying strings into it every call.