Skip to content

Support for pre-calculated checksums to avoid redundant checksum calculation during SIP generation #368

@JohannesKarlsen99

Description

@JohannesKarlsen99

When building E-ARK SIPs with large files (such as MKV video files from moving image archives), the current implementation always calculates checksums during the write process, even when checksums are already known and set on the IPFile object.

The IPFile class already has setChecksum() and setChecksumAlgorithm() methods, but these values are never used during SIP generation. Instead, checksums are always recalculated in:

  • ZIPUtils.zip() - calculates checksum while zipping files
  • FolderWriteStrategy.writeFileToPath() - calculates checksum while copying files

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions