Skip to content

[jit] In pickler, don't memoize if not necessary #21544

@driazati

Description

@driazati

Follow up to #21542, now the pickler works the same as Python's in that it outputs memoization IDs for every object. For improved binary size and faster deserialization we should do a pass over all the IValues to be serialized and only memoize the ones that are actually used more than once (similar to pickletools.optimize()

cc @suo

Metadata

Metadata

Assignees

No one assigned

    Labels

    jit-backlogoncall: jitAdd this issue/PR to JIT oncall triage queuetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions