Darwinbots Forum
Code center => Suggestions => Topic started by: bacillus on January 25, 2010, 04:02:16 AM
-
In a spring cleaning of my system, I found out that the DB folder, which I had previously assumed to be of negligible size, had eaten up 2GB of my hard drive! Deleting and zipping simulations cut this down to about 35MB, but still raises an issue. Is there any way to save simulations so they don't take up a huge amount of space? I ask as it strikes me as some part of the original spaghetti code that nobody's been willing to touch for years. (And I won't blame you for avoiding it )
-
Yes, we could include something that zipped the simulations before saving them to disk. It would probably make saving faster as well, since usually zipping is faster bytes/sec-wise than disk access. But we'd need to find some way to hook our VB6 code in to a compression library, which isn't trivial.
-
I was thinking more in the direction of saving simulation parameters seperately as they usually stay the same between saves and things like that, but sure, whatever works...
-
It's the DNA and mutation details that take up most of the space. The simulation details are like 512 byes, if that.
-
It's the DNA and mutation details that take up most of the space. The simulation details are like 512 byes, if that.
Maybe making the mutation details optional, then? After a few dozen generations, they are usually too hard to keep track of anyway.
-
They are currently, actually. "Save without mutation details".
-
Oh...
-
Why do the mutation details take up so much space? It seems like each one is kind of small like, on cycle w mutation x changed bp y to bp z. Thats four variables.
-
Save last 10 only ?
-
Why do the mutation details take up so much space? It seems like each one is kind of small like, on cycle w mutation x changed bp y to bp z. Thats four variables.
They're stored as full strings. They don't have to be, just no one ever did them differently.
-
Save last 10 only ?
I always turn this option on but apparently not. My guess is that new sims don't overwrite other sims.
-
[My guess is that new sims don't overwrite other sims.
The chek would be to save a sim every minute, start a new one every hour and see what happens