Closed corvidian closed 13 years ago
I think this will require a rewrite to use StringIO or another kind of buffer, rather than concatenating. If you're feeling experimental, you could also try the Clojure port of this code: https://github.com/pepijndevos/Clomian
Seems like the real problem was memory starvation. I ran mian on the same world on one of the workstations at our school. It ran fine for some time, but used more and more memory all the time. After a while it used ~6 gigs of virtual memory, and spent all of it's time swapping.
Is it storing all of the map data in one string or something? Wouldn't it be better to do it one chunk at a time, so the memory requirement is constant regardless of map size?
My branch count-chunk solves this problem, it makes count the chunks individually, so RAM usage keep constant. I've done a pull request.
Please, give it a try!
Fixed by Fenixin@d6d01308a752e964a8f69534c1f67ccae5be12de - Thanks!
When I try to run the tool on our SMP world, I get the following error.
The world is about 94k chunks. The command line used was: mian -b 38,15,0E world