mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-02-03 21:30:35 +00:00
[PR #52] [MERGED] Fix mszip relying on exceptions #85
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/SabreTools.Serialization/pull/52
Author: @HeroponRikiBestest
Created: 12/4/2025
Status: ✅ Merged
Merged: 1/5/2026
Merged by: @mnadareski
Base:
main← Head:bestest-mszip📝 Commits (10+)
f51cfebBetter fix4d2700ainitial809aacaFixeda4a5aa3Move function to proper location, clear memory betterd559f73work so far86fbfaamore37c7cf0more work109c746No more per file seeking6613f82Finished work for now.4df3c8eFirst round of fixes.📊 Changes
3 files changed (+184 additions, -8 deletions)
View changed files
📝
SabreTools.Serialization/Readers/MicrosoftCabinet.cs(+4 -4)📝
SabreTools.Serialization/Wrappers/MicrosoftCabinet.Extraction.cs(+76 -3)📝
SabreTools.Serialization/Wrappers/MicrosoftCabinet.cs(+104 -1)📄 Description
Fixes https://github.com/SabreTools/SabreTools.Serialization/issues/44 with some major changes. I don't know enough about mszip to know if this is 100% safe. I also assume you'd want me to make some changes on this.
This PR also drastically reduces the amount of memory needed to perform extraction, which is still a significant issue for mszip extraction.
The memory usage is still somewhat large, but I'm unsure how to properly clear memory beyond hoping C#/dotnet does it for me. If you can provide some input there, memory usage should be able to finally be reduced to a normal size.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.