ANN: GLX2 3.0.10

Mark Wieder mwieder at ahsoftware.net
Mon Aug 6 15:29:53 EDT 2012


Alejandro Tejada <capellan2000 at ...> writes:

> Look, for example, the contents of an element
> of the Undo Array. The Undo Array contains 
> a xml description of all controls placed in
> a single card:

I think xml is probably the wrong format for this data. In order to determine
the difference between versions you're going to have to unpack the xml data,
find what has changed, pack that data back into xml, and store that. That's a
lot of unnecessary work.

Much easier (and faster and less memory for storage) to store an array whose
keys are the property names and whose elements are the values. Then use
Richard's merge function to find the deltas quickly.

-- 
 Mark Wieder
 mwieder at ahsoftware.net








More information about the use-livecode mailing list