Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Darshan808
Copy link
Member

Summary

pycrdt-store added support for compression and decompression callback functions in SQLiteYStore to compress Y updates and reduce database size (refer to y-crdt/pycrdt-store#8). This PR introduces traitlets in jupyter-collaboration to expose this compression functionality through configuration, allowing users to easily configure compression without code changes.

Changes

  • Added compress_function and decompress_function traitlets that accept dotted import paths
  • Automatic import and registration of compression callbacks when both functions are specified
  • Added test coverage for compression configuration

Usage

  • Via config file (e.g)
c.SQLiteYStore.compress_function = 'zlib.compress'
c.SQLiteYStore.decompress_function = 'zlib.decompress'

Copy link
Contributor

Binder 👈 Launch a Binder on branch Darshan808/jupyter-collaboration/add-compression-traitlets

@Darshan808 Darshan808 added the enhancement New feature or request label Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.