Skip to content

Refactor / optimize scan_julia_object and get_so_object_size #296

Description

@udesou

The structure for these functions is fairly similar: for an object, get its type and find its references (scan_julia_object) and its size (get_so_object_size).

The question is: there is common code here that could be lifted but also, from a performance perspective, it might just be worth memoizing the object size during object scanning, so we don't need to introspect its type again during the same GC cycle and simply return its size (from a Hashmap for instance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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