You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.
Hi
I tried to unpack a large msdf file (about 500 Mb) and got large memory consumption (about 6-8 Gb).
I think what this because a new byte[] operation take place many times.
Can you made some changes like this:
Sector.cs - add function
public void GetData(byte[] buffer, int offset, int length)
{
if (IsStreamed)
{
stream.Seek((long)size + (long)this.id * (long)size, SeekOrigin.Begin);
stream.Read(buffer, offset, Math.Min(size, length));
}
}
And use it at the StreamView.cs (function int Read(byte[] buffer, int offset, int count)) instead of sectorChain[secIndex].GetData() function
Thanks
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
I tried to unpack a large msdf file (about 500 Mb) and got large memory consumption (about 6-8 Gb).
I think what this because a
new byte[]
operation take place many times.Can you made some changes like this:
Sector.cs - add function
And use it at the StreamView.cs (function
int Read(byte[] buffer, int offset, int count)
) instead ofsectorChain[secIndex].GetData()
functionThanks
The text was updated successfully, but these errors were encountered: