persistence request

BlitzMax Forums/Brucey's Modules/persistence request

slenkar(Posted 2009) [#1]
Hi I am using the persistence module with a large number of objects.

Is there a chance you could please chance it so that if an integer is zero then it ISNT written to the file?
That way zero integers will turn out as zero anyway because that is the value integers start off with when they are created.


Brucey(Posted 2009) [#2]
I'll have a look into it :-)


slenkar(Posted 2009) [#3]
thanks


_Skully(Posted 2009) [#4]
you looking at a compression algo then i think


slenkar(Posted 2009) [#5]
compression doesnt reduce loading and setup time,
this is just getting rid of information that doesnt need to be there.


_Skully(Posted 2009) [#6]
but when you read the information, if the 0 is not written won't the loader think the next value written in the file is the value of the integer?


slenkar(Posted 2009) [#7]
its written with field names so nothing is mixed up


_Skully(Posted 2009) [#8]
oh... xml by any chance?


slenkar(Posted 2009) [#9]
yeah, it has libxml as a requirement,
you should try it out sometime if you havent already, it means you dont have to write a save game function ever again :_)