Skip to content

Improve memory management #6

@z-silver

Description

@z-silver

Right now, we don't have a proper strategy for allocation during parses. Most likely we are leaking memory everywhere. We can do better.

After looking into how std.json is implemented, I think we can largely borrow their memory management strategy: instead of direcly returning the user-requested type T, we could return something like std.json.Parsed(T) which wraps the T together with an arena allocator which is used for parsing.

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