mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
* Eliminate unnecessary use of MD5 checksum md5checksum() computes the actual checksum of a specified file, which is appropriately expensive, but the code seemed to be using the checksum result as a key into the imgMetadata dictionary to avoid handling image files being renamed during processing steps. This seems like a very expensive way to handle the rename so instead, I now update the imgMetadata keys with the new filename in the one place that the rename happens, and avoid MD5 checksums entirely. * merge conflicts * Add missing handling for image path renames due to nested chapter folder name * merge conflicts * merge conflicts * add perf_counters * imgFileProcessing perf_counter * use startswith and removeprefix --------- Co-authored-by: utopiafallen <utopiafallen@gmail.com>