Code Monkey home page Code Monkey logo

Comments (6)

fefit avatar fefit commented on August 15, 2024

@Archimboldi 感谢反馈~ 能方便给出个大概的稍微详细点的示例代码吗?我先按你说的流程试试看能不能排查到问题了~

from visdom.

Archimboldi avatar Archimboldi commented on August 15, 2024

main.txt

from visdom.

Archimboldi avatar Archimboldi commented on August 15, 2024

点错,给close了,麻烦看下代码

from visdom.

fefit avatar fefit commented on August 15, 2024

@Archimboldi 抱歉,回复晚了,刚好假期事情有点多,下午挨个排查后,发现内存没有正确释放的原因是在依赖的html parser的库中rphtml错误的用了一个Rc的循环引用,导致引用计数没法归零,内存没法释放。明天将更新一版rphtml修复这个问题,另外visdom的load方法以前为了写法方便,直接返回的Elements好直接进行链式操作,但实际上返回document类型比较适合,但这里如果改动就会成为break change了,预想的是 Vis::load(html).elements() 来代替以前的 Vis::load(html),然后 Vis::load(html) 返回的Document就可以增加destory方法主动释放文档节点树了,不知道这样改对使用时的修改成本高不高~?

from visdom.

fefit avatar fefit commented on August 15, 2024

@Archimboldi 已经修复啦,暂时保持了和以前一致的API,不用改动代码,有空你可以再试试跑一下代码,如还有问题欢迎随时反馈,感谢~!

from visdom.

Archimboldi avatar Archimboldi commented on August 15, 2024

好的,谢谢啦,现在的内存表现很棒!已Star

from visdom.

Related Issues (18)

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.