mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-13 16:03:22 -05:00
00991733f2
Benefits:
* Blake3 is faster. This is most noticeable for the hashing of the
sample file data.
* we no longer need OpenSSL, which helps with shrinking the binary size
(#70). sha1 basically forced OpenSSL usage; ring deliberately doesn't
support this old algorithm, and the pure-Rust sha1 crate is painfully
slow. OpenSSL might still be a better choice than ring/rustls for TLS
but it's nice to have the option.
For the video sample entries, I decided we don't need to hash at all. I
think the id number is sufficiently stable, and it's okay---perhaps even
desirable---if an existing init segment changes for fixes like
|
||
---|---|---|
.. | ||
mod.rs | ||
v0_to_v1.rs | ||
v0.sql | ||
v1_to_v2.rs | ||
v1.sql | ||
v2_to_v3.rs | ||
v3_to_v4.rs | ||
v3.sql | ||
v4_to_v5.rs | ||
v5_to_v6.rs | ||
v5.sql |