Skip to content

Stack usage #286

Open
Open
@laurgarn

Description

@laurgarn

With a big network of data, json-io may take a lot of stack space both at writing and reading.
For example, I have to allocate 2 Mio of stack in order to read and/or write a json.gz of 50 Mio on disk.
This minimum amount varies impredictably.
I have crafted a compatible writer on a branch that is happy with just 256 kio of stack space, by trying to limit depth first strategy.
It is noticeably slower but still usable (17s vs 10s, and 18s to parse, no change) .
Topping on the cake, it can output a far more human friendly json when formatted.
This is not an advocacy to use my solution, but allowing a "least deep strategy" would be a nice plus.

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