The source project of this merge request has been removed.
Performance improvement in extract_data
The function extract_data
takes up most of the runtime of JPKFile(filename)
(75-95 % on my sample files), because it loops over binary arrays and unpacks them value by value (using struct.unpack
). By using struct.unpack_from
on the whole binary array, the function becomes significantly faster, reducing the overall runtime by about 70-90 %.