Questions tagged [dart-vm]

3 questions
2
votes
0 answers

How can one respond to a Hot Reload?

I have a long-lived object in my Dart app, created using the output of several computationally expensive functions. Often, I change these expensive functions - but because their output is cached, I cannot see the results of my changes without…
hacker1024
  • 3,186
  • 1
  • 11
  • 31
1
vote
1 answer

Flutter DevTool: Class instance not removed on screen dispose

My application (through multiple class instances, static classes and get_it dependency injector) contains some nasty memory leaks. I'm on a mission to find and resolve them. But first, I wanted to establish the ground truth with a small example.…
matox
  • 885
  • 11
  • 27
1
vote
1 answer

What's the most efficient way to make a single-item Iterable in Dart?

In Dart, single-item iterables can be created in various ways. ['item']; // A single-item list Iterable.generate(1, (_) => 'item'); // A single-item generated Iterable How do these methods compare in terms of speed and memory usage, during both…
hacker1024
  • 3,186
  • 1
  • 11
  • 31