Skip to content

Reduce memory use of digital signature check - #318

Open
Ghesselink wants to merge 1 commit into
developmentfrom
IVS-931-Digital-Signatures-RAM
Open

Reduce memory use of digital signature check#318
Ghesselink wants to merge 1 commit into
developmentfrom
IVS-931-Digital-Signatures-RAM

Conversation

@Ghesselink

Copy link
Copy Markdown
Contributor

Also to preview @civilx64 ?

The check loaded and stripped the whole file per character (~10x file
size in RAM) before looking for a signature. Now a chunked scan for the
SIGNATURE; marker exits early when there is none, and stripping uses
bytes.translate. Peak RSS on a 125 MB model drops from 1212 MB to 37 MB.
@Ghesselink
Ghesselink requested a review from aothms August 11, 2026 17:57
@civilx64

Copy link
Copy Markdown
Contributor

keep as-is. Once merged and deployed to DEV we can pull it in with the next change to preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants