ff (Q35166)

From MaRDI portal
Revision as of 15:04, 27 February 2024 by Importer (talk | contribs) (‎Changed an Item)
Memory-Efficient Storage of Large Data on Disk and Fast Access Functions
Language Label Description Also known as
English
ff
Memory-Efficient Storage of Large Data on Disk and Fast Access Functions

    Statements

    0 references
    4.0.9
    25 January 2023
    0 references
    1.0-1
    3 November 2007
    0 references
    2.0.0
    3 August 2008
    0 references
    2.0.1
    16 April 2009
    0 references
    2.1-0
    3 November 2009
    0 references
    2.1-1
    5 November 2009
    0 references
    2.1-2
    20 January 2010
    0 references
    2.2-0
    30 September 2010
    0 references
    2.2-1
    5 October 2010
    0 references
    2.2-2
    24 April 2011
    0 references
    2.2-3
    25 July 2011
    0 references
    2.2-4
    15 January 2012
    0 references
    2.2-5
    27 January 2012
    0 references
    2.2-6
    31 March 2012
    0 references
    2.2-7
    8 May 2012
    0 references
    2.2-9
    24 October 2012
    0 references
    2.2-10
    6 November 2012
    0 references
    2.2-11
    12 March 2013
    0 references
    2.2-12
    16 October 2013
    0 references
    2.2-13
    9 April 2014
    0 references
    2.2-14.2
    16 April 2020
    0 references
    2.2-14
    15 May 2018
    0 references
    4.0.2
    30 July 2020
    0 references
    4.0.4
    13 October 2020
    0 references
    4.0.5
    29 October 2021
    0 references
    4.0.7
    6 May 2022
    0 references
    4.0.12
    12 January 2024
    0 references
    0 references
    12 January 2024
    0 references
    The ff package provides data structures that are stored ondisk but behave (almost) as if they were in RAM by transparently mapping only a section (pagesize) in main memory - the effective virtual memory consumption per ff object. ff supports R's standard atomic data types 'double', 'logical', 'raw' and 'integer' and non-standard atomic types boolean (1 bit), quad (2 bit unsigned), nibble (4 bit unsigned), byte (1 byte signed with NAs), ubyte (1 byte unsigned), short (2 byte signed with NAs), ushort (2 byte unsigned), single (4 byte float with NAs). For example 'quad' allows efficient storage of genomic data as an 'A','T','G','C' factor. The unsigned types support 'circular' arithmetic. There is also support for close-to-atomic types 'factor', 'ordered', 'POSIXct', 'Date' and custom close-to-atomic types. ff not only has native C-support for vectors, matrices and arrays with flexible dimorder (major column-order, major row-order and generalizations for arrays). There is also a ffdf class not unlike data.frames and import/export filters for csv files.ff objects store raw data in binary flat files in native encoding,and complement this with metadata stored in R as physical and virtualattributes. ff objects have well-defined hybrid copying semantics, which gives rise to certain performance improvements through virtualization. ff objects can be stored and reopened across R sessions. ff files can be shared by multiple ff R objects (using different data en/de-coding schemes) in the same process or from multiple R processes to exploit parallelism. A wide choice of finalizer options allows to work with 'permanent' files as well as creating/removing 'temporary' ff files completely transparent to the user. On certain OS/Filesystem combinations, creating the ff filesworks without notable delay thanks to using sparse file allocation.Several access optimization techniques such as Hybrid Index Preprocessing and Virtualization are implemented to achieve good performance even with large datasets, for example virtual matrix transpose without touching a single byte on disk. Further, to reduce disk I/O, 'logicals' and non-standard data types get stored native and compact on binary flat files i.e. logicals take up exactly 2 bits to represent TRUE, FALSE and NA. Beyond basic access functions, the ff package also provides compatibility functions that facilitate writing code for ff and ram objects and support for batch processing on ff objects (e.g. as.ram, as.ff, ffapply). ff interfaces closely with functionality from package 'bit': chunked looping, fast bit operations and coercions between different objects that can store subscript information ('bit', 'bitwhich', ff 'boolean', ri range index, hi hybrid index). This allowsto work interactively with selections of large datasets and quickly modify selection criteria. Further high-performance enhancements can be made available upon request.
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references

    Identifiers

    0 references
    0 references