localcc / gvas

GVAS file format parsing library for rust
MIT License
20 stars 2 forks source link

Palworld test are slow #56

Open scottanderson opened 8 months ago

scottanderson commented 8 months ago

It takes approximately 10s to run tests/palworld.rs on my machine. If possible, we should replace the file under test with a simpler example that doesn't take so long to run.

xAt0mZ commented 8 months ago

ZLib twice is taking most of the time. This file contains all the entities of a map (it's a world save). Should be able to craft a smaller one from with all the possible data from a JSON representation of the file tho. However for now, even a blank save generates a 700MB+ JSON file...

I have more complex saves that are almost 9GB when translated to JSON so editing them is nearly impossible as is.