-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file.Decompress #1884
Comments
It will take just as long for this function to execute unless you are also requesting it to be asynchronous. Either way, it's kind of a niche request. |
Loading the compressed and then the decompressed file into memory is definitely slower than doing it properly in C++. But that's not the main issue, memory usage is. Besides everything needed to add this is already there. |
Would be cool if we could get file.WriteCompressed for the same reason. In that case we should probably name the function file.ReadCompressed instead of file.Decompress. The naming of file.Decompress actually implies that it will modify the file. |
This would be very useful please add |
Details
A function to decompress a file.
This current situation where you have to read the file, pass it to util.Decompress and write it again is extremely slow and prone to maxing the games memory when working with larger files.
The text was updated successfully, but these errors were encountered: