Skip to content

Suggestion: using elm-serialize #20

@MattiaVerticchio

Description

@MattiaVerticchio

I want to make a suggestion, hoping it’s useful. 😁

I’ve read this response about the maximum supported model size of 166,6 MB (JSON encoded).

The package elm-serialize produces compressed JSON encoding.

There is a post on the Elm Discourse and it proved to be beneficial in elm-review too:

elm-serialize produces a significantly compressed JSON output (or binary, but which proved to be less efficient at this time). Instead of {"expression": {"type": "Operator", "operator" : "+" } } it will be something like [0,[0,0,1,"+"]].

Overall, this reduces the total cache size from 40MB to 14MB in the large project I mentioned, and because there is less data to read from (and to write to) the slow file system, the total run time was reduced by about 15%!

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