Repository navigation
hidane 0.5.1 fixes a slowdown in 0.5.0: commits with many writes were up to twelve times slower than in 0.4.0. Upgrade if you write in batches. Nothing else changed; parity is as in 0.5.0, verified against the official emulator v1.22.0 and firebase-tools 15.33.0.
Commits (#279)
In 0.5.0, a commit's write results were settled by going over every write once for each document the commit touched (#273, for the results of several writes to one document). The canonical benchmark of 0.5.0 showed it: on the same machine as 0.4.0's (result), a commit of 500 writes took 99.5 ms instead of 8.01 ms, and 100,000 documents in commits of 500 took 19.12 s instead of 1.46 s, slower than the official emulator's 15.96 s. 0.5.1 settles each document once and goes over the writes once; the answers are the same.
The targets check on GitHub-hosted runners now measures a commit of 500 writes too and fails above 25 ms (the official emulator takes 69.2 ms on the canonical machine), so a regression like this one fails on the next push to main.
Breaking changes
None.
Install
curl -fsSL https://hidane.dev/install.sh | sh
brew install hidane-dev/tap/hidane
npm install --save-dev hidane
cargo binstall hidane # or cargo install hidane
dart pub global activate hidane
docker run --rm -p 8080:8080 ghcr.io/hidane-dev/hidane:0.5.1Full changelog: v0.5.0...v0.5.1