I just doubled the performance of the fluid simulator. At least in the Debug mode. And just by changing the type used for storing coords to simulate from a list to a vector. See how important it is to choose a proper container?
Also the memory footprint of the Debug version dropped significantly - before the change I had MCServer running out of memory at 2 GiB, now it's stable at 400 MiB. I think the release version wasn't affected that much, because most of that memory went to LeakFinder (which isn't used in Release mode), but still it should be an improvement as well.
There's a bit too much lava in my nether now
Also the memory footprint of the Debug version dropped significantly - before the change I had MCServer running out of memory at 2 GiB, now it's stable at 400 MiB. I think the release version wasn't affected that much, because most of that memory went to LeakFinder (which isn't used in Release mode), but still it should be an improvement as well.
There's a bit too much lava in my nether now