Skip to content

shareData() without deep copy? #43

@SebKrantz

Description

@SebKrantz

Hi Morgan,

I wondered: shareData() currently does a deep copy of the object right? For my time-series/panel-data indexing solution in collapse, I just creating an external pointer to the object: https://github.com/SebKrantz/collapse/blob/master/src/extptr.c, which works well in the current session.

I wondered whether you think that would work also across sessions. The particular context I am looking at is a mirai map (docs here), where the current session remains active, and the external pointer could be a lightweight way of passing an environment with objects to a parallel processs. (also tagging this issue).

Best,

Sebastian

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