Giter Site home page Giter Site logo

Comments (6)

shmily-xxx avatar shmily-xxx commented on June 12, 2024

1713517432925
发现新增的这个自定义html节点没有删除 多次操作会一直增加 内存也在增加

from logicflow.

DymoneLewis avatar DymoneLewis commented on June 12, 2024

感谢反馈,确实有这样的问题,目前正在开发destroy方法,短期比较推荐在FlowChart的beforeDestroy里调用一下lf.clearData()方法清空画布或者使用v-show控制组件的显隐

from logicflow.

shmily-xxx avatar shmily-xxx commented on June 12, 2024

我尝试了lf.clearData()方法 节点还在 感觉作用不是太大

from logicflow.

wumail avatar wumail commented on June 12, 2024

我尝试了lf.clearData()方法 节点还在 感觉作用不是太大

我跑了下你给的示例
1、FlowChart组件销毁但是节点内存不释放的问题确实存在,无论是html节点还是一般的节点
image
image
2、内存的增长情况还好
一开始:
image
GC后:
image
3、尝试做了一些解除引用的动作,有一定作用,但是不影响结论1
image
image
image
image

from logicflow.

shmily-xxx avatar shmily-xxx commented on June 12, 2024

我尝试了你的这种方法 列子里面数据少 我用到项目组作用不大
这是我用例子跑的 先切换显隐看下是100mb 再切换很多次增加到了200mb,而且 componentWillMount() {
this.app.unmount()
}还会有警告
1714114766777

1714115064331
请问下 后期会提供 销毁方法吗?

from logicflow.

wumail avatar wumail commented on June 12, 2024

我尝试了你的这种方法 列子里面数据少 我用到项目组作用不大 这是我用例子跑的 先切换显隐看下是100mb 再切换很多次增加到了200mb,而且 componentWillMount() { this.app.unmount() }还会有警告 1714114766777

1714115064331 请问下 后期会提供 销毁方法吗?

销毁的方法目前看确实是需要的,内存未释放的问题需要整体看下、排查一下,工作量可能不小

from logicflow.

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.