Leandro Motta Barros
Leandro Motta Barros
Our [Update Locking](https://docs.balena.io/learn/deploy/release-strategy/update-locking/) docs provide some code snippets to show users how to create lockfiles correctly in some languages. I found that at least two of these snippets are outdated....
Benchmarks on `master`: ``` lmb@Ahab ~/balena/balena-os/librsync-go (master)]go test -run ^$ -bench Benchmark goos: linux goarch: amd64 pkg: github.com/balena-os/librsync-go cpu: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz BenchmarkSignature1MB-12 385 3092974 ns/op 323.31...
This shall help to keep the memory usage under control, reduce the pressure on the GC, and be a bit faster.
This is useful for debugging or otherwise inspecting the contents of generated deltas. TODO: * Probably worth looking for clean up opportunities, perhaps even consolidating some duplicate-(ish) code I added....
**This still needs some more testing and thinking, but looks like the right move!** Our previous implementation was closing the base image stream before it was even used. With this...
Changelog-entry: Testing, don't deploy anything
Another attempt at fixing a little issue I found in cute_c2. This is working fine in my test cases, though I believe there must be a smarter way of implementing...