Skip to content

Cache key in tapedfunction #158

Closed
@FredericWantiez

Description

@FredericWantiez

Was looking at

cache_key = (f, args_type...)

Shouldn't it be something like this instead ?

cache_key = (f, deepcopy_types, args_type...) 

Otherwise this is giving counterintuitive results:

struct Dummy 
    a::Array
end

function f(d::Dummy)
    produce(d.a)
end

d = Dummy([1])
t = TapedTask(f, d) # No Dummy in deepcopy_types
t2 = TapedTask(f, d; deepcopy_types=Dummy) # Dummy won't be part of the deepcopy_types

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