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

编辑较大markdown文件的时候卡顿非常严重(2000行)。 #17

Closed
Jsnows opened this issue Jun 12, 2018 · 3 comments
Closed
Labels
Optimization Performance optimization

Comments

@Jsnows
Copy link

Jsnows commented Jun 12, 2018

后续会优化解析器性能吗?

@IceEnd
Copy link
Owner

IceEnd commented Jun 12, 2018

针对大文件的编辑卡顿,考虑添加防抖,将编辑器替换成monaco-editor,其他方案待定。

@IceEnd IceEnd added the Optimization Performance optimization label Jun 12, 2018
@Jsnows
Copy link
Author

Jsnows commented Jun 12, 2018

不是编辑区造成的。是marked语法解析太慢还有就是dom渲染造成的阻塞,我看你的代码并没有添加缓存处理,每次都marked全量解析dom全量替换。有考虑重写一个markdown语法解析器吗?

@IceEnd
Copy link
Owner

IceEnd commented Jun 12, 2018

不考虑重写marked,这方面的问题只考虑转换防抖与渲染页内容增量更新

@IceEnd IceEnd closed this as completed in 4d909f1 Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Optimization Performance optimization
Projects
None yet
Development

No branches or pull requests

2 participants