Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and improve pyo3 #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heftig
Copy link
Contributor

@heftig heftig commented Aug 4, 2024

  • Update all dependencies so that cargo outdated -R is 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_table or compress_chunks_of_database.

    Rename the entry point to run_compression, matching the manual compressor, and fix the docs. Leave compress_largest_rooms as another entry point to avoid breaking existing code.

  • Provide a default for default_levels.

  • Use &str instead of String in 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_err to simplify error conversion a bit.

@heftig heftig requested a review from a team as a code owner August 4, 2024 21:43
- Update all dependencies so that `cargo outdated -R` is 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_table`
  or `compress_chunks_of_database`.

  Rename the entry point to `run_compression`, matching the manual
  compressor, and fix the docs. Leave `compress_largest_rooms` as
  another entry point to avoid breaking existing code.

- Provide a default for `default_levels`.

- Use `&str` instead of `String` in 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_err` to simplify error conversion a bit.

Signed-off-by: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant