Micro Benchmarking Dart

In the past few months I have started receiving more and more questions about performance of some specific Dart operations. Here is an example of such a question asked by Romain Rastel in the context of his work on improving performance of ChangeNotifier in Flutter.

Given my experience I knew exactly what was going wrong in this particular benchmark after the very first glance… but for the sake of storytelling let me pretend that I did not. How would I approach this then?


This thread was posted by one of our members via one of our news source trackers.

Corresponding tweet for this thread:


Share link for this tweet.

Related portal: