Code analysis and parallelizing vector operations in R (Q549612)

From MaRDI portal
scientific article
Language Label Description Also known as
English
Code analysis and parallelizing vector operations in R
scientific article

    Statements

    Code analysis and parallelizing vector operations in R (English)
    0 references
    0 references
    18 July 2011
    0 references
    Possibilities of static code analysis of S-language scripts are discussed. The author presents the \texttt{codetools} package for R software which checks the code for such issues as defined but not used variables, non-existent arguments in function calls, and so on. The other topic of the paper is the parallelization of vector operations in R. The author discusses especially the case of dual core processors and mentions that the parallelization will only pay when the vector length \(n\) is large enough and the performed function is computationally expensive. In his experiments \(n\approx 4\) appeared to be sufficient to warrant parallel computation of such functions as \texttt{qbet}, but functions like \texttt{qnorm} require \(n\approx 400\), and for basic arithmetic operations \(n\approx 30.000\). So a preliminary code analysis is needed for efficient parallelization together with the analysis of specific hardware and operation system capabilities.
    0 references
    0 references
    0 references
    0 references
    0 references
    static analysis
    0 references
    compilation
    0 references
    parallel computation
    0 references
    S-plus
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references