Code Monkey home page Code Monkey logo

Comments (5)

imzbf avatar imzbf commented on June 24, 2024

内存还没有来得及回收,在文档的首页,多次刷新和编辑等操作后确实会增加,在稍后一点时间或者手动垃圾回收,整个页面的稳定在24左右。

导致内存占用增加的原因有内容的增加(其中也包括了mermaid图形缓存),单页应用中页面打开的数量增加等。

至于这个字符串的问题,这是解析程序的正则,我搜出来并没有你描述那么多,貌似只有18次

from md-editor-v3.

kingwrcy avatar kingwrcy commented on June 24, 2024

地址在 https://discussion.mblog.club/ ,随便点几个帖子,返回,进入,就出来了,多重复点几次,比如4 5次之后.

image

from md-editor-v3.

imzbf avatar imzbf commented on June 24, 2024

展开更多,里面大部分是其他构造字符串。按照你描述的重复进入、刷新等操作,手动清理后也稳定在24左右

from md-editor-v3.

kingwrcy avatar kingwrcy commented on June 24, 2024

好吧,那我再看看其它哪里有可能导致内存泄漏.

from md-editor-v3.

imzbf avatar imzbf commented on June 24, 2024

好吧,那我再看看其它哪里有可能导致内存泄漏.

我会再尝试一下和来回创建编辑器的实例有关系

from md-editor-v3.

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.