Open Amidweiz opened 3 years ago
Some thing worries me about implementing this. This would cause a huge overhead on both boot time and resources used to extract the zip if animated portrait are used.
On HDDs the extraction of over 100 zips could be painfully slow depending on the compression used. It could last over 10 min depending on what process are using disk.
That is true, I didn't think about animated portraits as well as said speed of HDD's since I upgraded my laptop with an SSD three years ago. Though when I was doing character collecting on my old HDD with my old laptop with 100+ characters it did take very long to load and that's without the zipped characters.
That said. It could work well on small rosters. So its still useful.
But because of the drawbacks implementing it will have low priority.
FYI, zipped files can be read in Go without actually extracting the files to the hard drive. This can be done by importing archive/zip and calling zip.OpenReader(zipfile) Here's a quick example which will read a superman.def file from superman.zip. Everything is read in memory without extracting the zip to the drive.
I'd noticed that with Ikemen that there isn't support for zipped characters anymore which mugen does have. Since this does save up space on disk by a significant amount if there are large rosters. This could potentially be expanded to support tar.gz, 7z, or RAR formats as well.