Skip to content

Browserify -r react takes almost 7 seconds #1108

@andreypopp

Description

@andreypopp

React 0.8

% time browserify -r react > /dev/null
browserify -r react > /dev/null  1.67s user 0.15s system 103% cpu 1.759 total

React 0.9

wmbp % time browserify -r react > /dev/null            ~/Workspace/test/react09
browserify -r react > /dev/null  6.97s user 0.25s system 101% cpu 7.091 total

I think this is because of envify switched to recast in 1.0.0. I submitted a patch to envify which uses jstransform instead of recast.

This brings us back to 1.5s and delivers the same advantages as recast version (preserves code formatting):

wmbp % time browserify -r react > /dev/null
browserify -r react > /dev/null  1.52s user 0.16s system 104% cpu 1.602 total

I think this is blocker for 0.9.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions