Skip to content

85% bigger parser size compared to pegjs optimized for size #584

@NogaMan

Description

@NogaMan

I've seen the optimize option was removed, but maybe it should be restored?
When i tried using peggy instead of pegjs in my project, the generated parser size increased almost 2 times.

The test was done by building the generated parser with webpack with minify option, so you might expect such increase in a production build.

Initially I've tried to migrate from unsupported old library but currently don't see any benefits, as this issue and bad TS typing exist.

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