Skip to content

Make RNGScope optional #29

@romainfrancois

Description

@romainfrancois

The production of

Rcpp::RNGScope __rngScope;

in the generated code should be optional. There are many cases when we are not going to generate random values. But we pay for this all the time, even though it is cheap. cheap is more expensive than free.

I think it should be disabled by default, and then we can ask for it with e.g. [[export(random=TRUE)]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions