Skip to content

30GB of RAM used then SIGKILL #50

@SamuelMarks

Description

@SamuelMarks
$ git clone --depth=1 https://github.com/stripe/openapi stripe-openapi
$ python main.py

Where main.py is:

#!/usr/bin/env python

from os import path
from json import load, dump

from jsonref import replace_refs

with open(path.join("stripe-openapi", "openapi", "spec3.sdk.json"), "rt") as f:
    doc = load(f)

derefed = replace_refs(doc)
with open('derefed_spec3.sdk.json', 'wt') as f:
    dump(f, derefed, indent=4)

I've got a new laptop with 32GB of RAM and a AMD Ryzen™ 9 6900HX with Radeon™ Graphics × 16, it is all used by this code and then SIGKILL is sent and game over. Ubuntu 22.10 on an SSD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions