Giter VIP home page Giter VIP logo

Comments (5)

fzyzcjy avatar fzyzcjy commented on July 19, 2024 1

Good idea. I am currently trying to do that using a dart (not flutter) vm. The valgrind outputs are not that good currently, but I will show you the results when I figure it out.

from allo-isolate.

shekohex avatar shekohex commented on July 19, 2024

What we currently do is emulating the DartVM in rust, just emulating the behavior that we got by reading the sdk/vm codebase.

But for actual testing on real Dart, it is hard for now, what you can do is running a simple flutter app with no UI and run it on a real device on profile mode.

Then you have an observability URL that you can open in the browser and keep an eye on the memory usage.

In the app code, you can pass messages between Rust and Dart with a big payload (say 512kb or 1M) and start observing the memory usage getting high and low or if it keeps growing indefinitely.

Also, it would be cool to do the same experiment with the new ZeroCopyBuffer to see the difference.

Would be super helpful to publish the result/screenshots of the memory graph here too.

from allo-isolate.

fzyzcjy avatar fzyzcjy commented on July 19, 2024

Hi, I have added:

  • Dart + Valgrind test
  • Flutter on iOS, Flutter on Android test

See: the "test" CI workflow in https://github.com/fzyzcjy/flutter_rust_bridge

Seems that allo-isolate does not have memory problems. Yeah!

from allo-isolate.

shekohex avatar shekohex commented on July 19, 2024

That's good to know, Thanks!

from allo-isolate.

fzyzcjy avatar fzyzcjy commented on July 19, 2024

You are welcome!

from allo-isolate.

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.