Skip to content

Instantly share code, notes, and snippets.

@jonahwilliams
Created October 24, 2024 16:37
Show Gist options
  • Save jonahwilliams/347c546017cbf98894000a3b7395cd01 to your computer and use it in GitHub Desktop.
Save jonahwilliams/347c546017cbf98894000a3b7395cd01 to your computer and use it in GitHub Desktop.
benchmark change
diff --git a/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart b/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart
index 8e3a41ab92..bfaaabd7fd 100644
--- a/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart
+++ b/dev/benchmarks/macrobenchmarks/lib/src/very_long_picture_scrolling.dart
@@ -27,6 +27,7 @@ class VeryLongPictureScrollingPerfState extends State<VeryLongPictureScrollingPe
return Scaffold(
appBar: AppBar(
actions: <Widget>[
+ LinearProgressIndicator(),
Row(
children: <Widget>[
const Text('list:'),
@@ -56,6 +57,7 @@ class VeryLongPictureScrollingPerfState extends State<VeryLongPictureScrollingPe
clipBehavior: Clip.none,
itemCount: (waveData.length / 200).ceil(),
itemExtent: 100,
+ addRepaintBoundaries: false,
itemBuilder: (BuildContext context, int index) => CustomPaint(
painter: PaintSomeTest(
waveData: waveData,
@@ -70,7 +72,7 @@ class VeryLongPictureScrollingPerfState extends State<VeryLongPictureScrollingPe
child: SizedBox(
width: MediaQuery.of(context).size.width * 20,
height: MediaQuery.of(context).size.height,
- child: RepaintBoundary(
+ child: Container(
child: CustomPaint(
isComplex: true,
painter: PaintTest(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment