MTrop / DoomTools

Doom-related tools for Java. Home of DECOHack and lots of other utilities. Build WAD projects (and soon, other kinds) with ease!
https://mtrop.github.io/DoomTools/
MIT License
46 stars 5 forks source link

[WadMerge] WadBuffer Expansion is Inefficient #93

Closed MTrop closed 1 year ago

MTrop commented 1 year ago

WadBuffers in WadMerge are created using the default constructor, which makes the the buffer double in size every expansion, thus hitting heap limits rather quickly.

As of this writing, DoomStruct currently has no way to fine-tune this. Will need to be added.

MTrop commented 1 year ago

Added DoomStruct Issue: https://github.com/MTrop/DoomStruct/issues/15

MTrop commented 1 year ago

Added some sort of user support in commit ffa74c4ee7642d601f07d7bbf09679b37ff0655c