John "codefu" McDole
John "codefu" McDole
Can you defined the metric for "too slow" and the hash you're using on the files contents. We don't need sha1 or any other cryptographic hashes for build triggering; something...
> @jtmcdole when I did a hot reload on a flutter project with a moderate amount of assets (flutter gallery) in 2020 , it took more than a second to...
Going with a bigger fileset (random*10 ~= 164MB): native: xxh3: 60ms sha1: 200ms md5: 270ms sha256: 400ms dart: md5: 680ms xxh3: 860ms sha1: 920ms sha256: 1245ms The big wins are...
Ill post it here (it's the dumbest of benches). ~What was the change to get those gains?!~ - was on my phone; not on laptop. Ohhhhh.
```patch - int dataVal = readLE64(input, inputOffset + (8 * i)); + int dataVal = readLE64(input, inputOffset + (i * 8)); ``` Me in college: "don't try to outsmart the...
```dart import 'dart:io'; import 'dart:typed_data'; import 'package:crypto/crypto.dart'; import 'package:xxh3/xxh3.dart'; import 'package:args/args.dart'; const String version = '0.0.1'; ArgParser buildParser() { return ArgParser() ..addFlag( 'help', abbr: 'h', negatable: false, help: 'Print this...
@mraleph - do we want to put up a friendly PR to the xxh3 library?
dart + patches: sha1: 900ms xxh3: 100ms Well that's a win.
Version 1.1.0 just got published with some other optimizations as well: https://pub.dev/packages/xxh3
@christopherfujino - if you have the dart sdk downloaded already, this will provide you with the signature hash.