Code Monkey home page Code Monkey logo

Comments (8)

xiaoiver avatar xiaoiver commented on June 2, 2024 1

升级到 @antv/[email protected] 即可

from g.

xiaoiver avatar xiaoiver commented on June 2, 2024

确实,这里不适合使用 memoize,无法清空 cache

from g.

coredesign1234 avatar coredesign1234 commented on June 2, 2024

@xiaoiver 有临时的解决方案么?

from g.

xiaoiver avatar xiaoiver commented on June 2, 2024

@xiaoiver 有临时的解决方案么?

我想到的方案是保留 transform 中的一定精度,减少动画过程中产生的 transform string 数量。修复中预计今天发布。

from g.

coredesign1234 avatar coredesign1234 commented on June 2, 2024

@xiaoiver 好的,这样应该能缓解一下
不过还是看看根除下

from g.

xiaoiver avatar xiaoiver commented on June 2, 2024

https://codesandbox.io/p/sandbox/dan-huang-lottie-l6fz3t?file=%2Findex.js

另外我用这个例子测了一下:https://l6fz3t.csb.app/

间隔 5 分钟快照,OOM 似乎不是很明显?你也是用这个例子度量的嘛
截屏2024-01-10 上午10 56 04

from g.

coredesign1234 avatar coredesign1234 commented on June 2, 2024

其中部分会释放,但是我们的场景会播放一夜,就会很明显了
我们的业务代码,实际上是多个组件同时在播放动画,demo只是剥离了其中一个组件

from g.

xiaoiver avatar xiaoiver commented on June 2, 2024

其中部分会释放,但是我们的场景会播放一夜,就会很明显了 我们的业务代码,实际上是多个组件同时在播放动画,demo只是剥离了其中一个组件

了解我会在动画过程中禁用掉 memoize,否则会创建大量 CSSUnitValue 造成 OOM,大量插值也无法命中缓存:

截屏2024-01-10 下午2 19 46

from g.

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.