Persistent Data Object

From GM-RKB
Jump to navigation Jump to search

A Persistent Data Object is a Data Object that is a Persistent Entity.



References

2013

  • (Wikipedia, 2013) ⇒ http://en.wikipedia.org/wiki/persistent_data_structure Retrieved:2013-12-31.
    • In computing, a persistent data structure is a data structure that always preserves the previous version of itself when it is modified. Such data structures are effectively immutable, as their operations do not (visibly) update the structure in-place, but instead always yield a new updated structure. (A persistent data structure is not a data structure committed to persistent storage, such as a disk; this is a different and unrelated sense of the word "persistent.")

      A data structure is partially persistent if all versions can be accessed but only the newest version can be modified. The data structure is fully persistent if every version can be both accessed and modified. If there is also a meld or merge operation that can create a new version from two previous versions, the data structure is called confluently persistent. Structures that are not persistent are called ephemeral.[1]

      These types of data structures are particularly common in logical and functional programming, and in a purely functional program all data is immutable, so all data structures are automatically fully persistent. Persistent data structures can also be created using in-place updating of data and these may, in general, use less time or storage space than their purely functional counterparts.

      While persistence can be achieved by simple copying, this is inefficient in CPU and RAM usage, because most operations make only small changes to a data structure. A better method is to exploit the similarity between the new and old versions to share structure between them, such as using the same subtree in a number of tree structures. However, because it rapidly becomes infeasible to determine how many previous versions share which parts of the structure, and because it is often desirable to discard old versions, this necessitates an environment with garbage collection.

  1. Kaplan, Haim (2001). "Persistent data structures". Handbook on Data Structures and Applications (CRC Press). http://www.math.tau.ac.il/~haimk/papers/persistent-survey.ps. 

2009

  • (Wikipedia, 2009) ⇒ http://en.wikipedia.org/wiki/Persistence_(computer_science)
    • Persistence in computer science refers to the characteristic of data that outlives the execution of the program that created it. Without this capability, data only exists in RAM, and will be lost when the memory loses power, such as on computer shutdown.