https://github.com/Yaminike/MapleSca....scala#L33-L35
Code:
using(getClass.getResourceAsStream("/XML/Etc.nx.gz"))(stream => {
bytes = GzipParser.readGzip(stream)
})
Really? You're loading compressed NX files?
I find it hilarious how people are using the NX file format.
NX was designed first and foremost for me, for my C++/Rust, so that I can memory map the file and access the data directory with almost no loading and without using up significant amounts of memory.
Meanwhile here you are compressing your NX files so that not only do you have all the loaded NX data in memory, but you also have the decompressed file itself in memory.
The set of NX files for servers (so no bitmaps or sounds) was 451 MB back in GMS v141. Do you really want to throw that much memory away, plus the CPU time to decompress that, just for the sake of saving a bit of hard drive space?