Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce memory overhead of sourcemapLocations #169

Merged
merged 1 commit into from
Jan 2, 2020

Commits on Nov 19, 2019

  1. Reduce memory overhead of sourcemapLocations

    It was using an object to store positions in the string. This meant that
    those offsets were first stringified and then added as object
    properties. For a 200K JS code file (as parsed by rollup), the
    sourcemapLocations object was taking up 980K. Switching it to a BitSet
    that uses one bit per offset makes it take up 36K instead.
    
    Fixes Rich-Harris#167
    mihaip committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    15604f7 View commit details
    Browse the repository at this point in the history