Code Monkey home page Code Monkey logo

Comments (5)

michaelAtCoalesce avatar michaelAtCoalesce commented on June 12, 2024 1

i noticed that my .map file was 111megabytes, by reworking my webpack.config i was able to get it down to 1mb and i think that is helping reduce the amount of crashing thats going on.

to those in this boat, see if you can split your bundles to be smaller

https://medium.com/hackernoon/the-100-correct-way-to-split-your-chunks-with-webpack-f8a9df5b7758

from stacktrace.js.

niemyjski avatar niemyjski commented on June 12, 2024

@johannesjo would you mind attaching a snippet or unit test that would reproduce this issue so we could profile it.

from stacktrace.js.

lionelchauvin avatar lionelchauvin commented on June 12, 2024

This line could be the culprit of high memory usage:

var lines = source.split('\n');

A big source file will be splitted each time a function name must be found.
Imagine what happen with a source file of 10Mb and a stacktrace with hundred of function names.

120318906-b29c9080-c2e0-11eb-8de1-d1fe6a88c055

from stacktrace.js.

michaelAtCoalesce avatar michaelAtCoalesce commented on June 12, 2024

we have had browser crashes recently when using the stack trace grabbing functionality - as well as performance issues when gathering stack traces.

from stacktrace.js.

niemyjski avatar niemyjski commented on June 12, 2024

Would you mind submitting a pr with a fix, perhaps info could be cached.

from stacktrace.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.