Skip to content

Performance #43

@cymen

Description

@cymen

So we have performance issues sometimes. I want things to work faster locally and I am seeing some potential areas to make things faster:

  • when source maps are enabled, everything gets source maps including node_modules -- I could live without source maps for node_modules by default with option to turn them on
  • browserify supports a noparse option -- configuring it manually is annoying but automating it seems risky too -- potentially, we could do a noparse if we had a cache that told us if a file was CommonJS or not (if it needed to be browserified)
  • browserify has a --fast option -- it would be good to know if

For caching, we need something in memory (or in filesystem, I'd prefer memory). That cache would need the last modified time for a file along with other things. This would only be present for development -- in production with Rails, the assets are precompiled so browserify-rails should never need to be running in production (which frees us up on how we implement this quite a bit, let me know if my assumptions are wrong here).

This isn't comprehensive but I want to get the conversation going and see if anyone else is thinking about this (I know @gabrielecirulli is -- thanks to him, browserify-incremental is in with #35).

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