8000 Large output size on jsoo · Issue #84 · ocaml-community/yojson · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Large output size on jsoo #84
Closed
@joprice

Description

@joprice

When using this library with jsoo, a single reference to the library adds 64k to the js output. This is 20% of the total size of the application. This happens for instance with just a single definition of a function like let x = Yojson.Basic.to_string, with no uses. I'm not sure if this is an issue with jsoo that would require a more advanced optimizer, or with dependencies of the library that could perhaps be reduced to avoid pulling in so much code, but since json is a built-in feature of browsers, one would expect it to have relatively low overhead.

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

      0