Skip to content

Memory leaking in load #117

Description

@KKomarov

I see constantly growing memory with rapidjson.load comparing to standard json.load
I unpacked about 10k gzipped json files like this

for file_name in os.listdir(path):
   with open(os.path.join(path, file_name), 'rb') as f:
        content = f.read()
        with BytesIO(contents) as file_object:
            with gzip.GzipFile(fileobj=file_object, filename='objects.json') as archive:
                return rapidjson.load(archive)

Memory consumption of rapidjson
image
With json lib memory is almost constant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions