Comments (5)
内存还没有来得及回收,在文档的首页,多次刷新和编辑等操作后确实会增加,在稍后一点时间或者手动垃圾回收,整个页面的稳定在24左右。
导致内存占用增加的原因有内容的增加(其中也包括了mermaid图形缓存),单页应用中页面打开的数量增加等。
至于这个字符串的问题,这是解析程序的正则,我搜出来并没有你描述那么多,貌似只有18次
from md-editor-v3.
地址在 https://discussion.mblog.club/ ,随便点几个帖子,返回,进入,就出来了,多重复点几次,比如4 5次之后.
from md-editor-v3.
展开更多,里面大部分是其他构造字符串。按照你描述的重复进入、刷新等操作,手动清理后也稳定在24左右
from md-editor-v3.
好吧,那我再看看其它哪里有可能导致内存泄漏.
from md-editor-v3.
好吧,那我再看看其它哪里有可能导致内存泄漏.
我会再尝试一下和来回创建编辑器的实例有关系
from md-editor-v3.
Related Issues (20)
- 更新新版后,图片下方不再显示标题了 HOT 1
- 禁用代码折叠之后不应该显示那个小图标 HOT 2
- Cannot read properties of null (reading 'offsetTop') HOT 1
- 如何将mermaid CDN引入改为本地引入? HOT 1
- 代码块未知原因不显示 HOT 1
- 预览组件不显示有序列表 HOT 3
- 关于全部关闭CDN的问题 HOT 7
- Cannot use domEventHandlers HOT 6
- 仅预览模式,’\n‘换行后空了一行出来 HOT 9
- 编辑器工具栏消失 HOT 11
- 工具栏水平滑动失效 HOT 1
- 预览模式下能不能添加个变量识别? HOT 2
- 为什么类似于a.is,这样的字符串会被渲染成<a>标签呀?如图 HOT 5
- mermaid instance设置问题 HOT 1
- 怎么取消点击事件的向上冒泡 HOT 2
- 插入`<img>`元素,渲染之后没有了具体的 src 属性 HOT 2
- 请问如何实现插入内容到光标处 HOT 2
- 纯本地环境如何加载第三方类库 HOT 1
- 内容布局选项(居左居中居右)图片尺寸的编辑功能 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md-editor-v3.