rust-synapse-compress-state
rust-synapse-compress-state copied to clipboard
Update dependencies and improve pyo3
-
Update all dependencies so that
cargo outdated -Ris satisfied. -
Use declarative pyo3 modules.
-
The docs and the code disagreed on whether the auto compressor entry point is named
compress_largest_rooms,compress_state_events_tableorcompress_chunks_of_database.Rename the entry point to
run_compression, matching the manual compressor, and fix the docs. Leavecompress_largest_roomsas another entry point to avoid breaking existing code. -
Provide a default for
default_levels. -
Use
&strinstead ofStringin Python signatures where it simplifies the code or is necessary to include the default in the text signature. -
Release the GIL while running the manual compressor.
-
Use
map_errto simplify error conversion a bit.