Skip to content

Instantly share code, notes, and snippets.

View jonahwilliams's full-sized avatar

Jonah Williams jonahwilliams

View GitHub Profile
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
import 'package:flutter/material.dart';
void main() {
runApp(const Example());
}
class Example extends StatefulWidget {
const Example({super.key});
@override
#ifdef __ARM_NEON
// A * B * C * D
static void mat_multiply_4x4_neon(const float32_t* A,
const float32_t* B,
const float32_t* C,
float32_t* D) {
// these are the columns A
float32x4_t A0;
float32x4_t A1;
@jonahwilliams
jonahwilliams / diff.txt
Created October 24, 2024 16:37
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(
@jonahwilliams
jonahwilliams / output.svg
Created October 23, 2024 20:17
very large picture scrolling UI thread
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonahwilliams
jonahwilliams / diff.txt
Created September 25, 2024 03:12
draw atlas painter
diff --git a/bench_flutter/lib/game/game_screen.dart b/bench_flutter/lib/game/game_screen.dart
index 16843e0..87da9d4 100644
--- a/bench_flutter/lib/game/game_screen.dart
+++ b/bench_flutter/lib/game/game_screen.dart
@@ -1,3 +1,5 @@
+import 'dart:ui' as ui;
+
import 'package:bench_flutter/audio/audio_controller.dart';
import 'package:bench_flutter/game/button.dart';
import 'package:bench_flutter/game/game_world.dart';
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" width="1200" height="1414" onload="init(evt)" viewBox="0 0 1200 1414" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs>
<linearGradient id="background" y1="0" y2="1" x1="0" x2="0" >
<stop stop-color="#eeeeee" offset="5%" />
<stop stop-color="#eeeeb0" offset="95%" />
</linearGradient>
</defs>
<style type="text/css">
.func_g:hover { stroke:black; stroke-width:0.5; cursor:pointer; }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/packages/flutter_tools/lib/src/android/android_device.dart b/packages/flutter_tools/lib/src/android/android_device.dart
index 40a291ae0b..8488af4c86 100644
--- a/packages/flutter_tools/lib/src/android/android_device.dart
+++ b/packages/flutter_tools/lib/src/android/android_device.dart
@@ -1162,63 +1162,7 @@ class AdbLogReader extends DeviceLogReader {
if (_linesController.isClosed) {
return;
}
- final Match? timeMatch = AndroidDevice._timeRegExp.firstMatch(line);
- if (timeMatch == null || line.length == timeMatch.end) {