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

Compression algorithms and packing #59

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Compression algorithms and packing #59

merged 2 commits into from
Aug 30, 2024

Conversation

jahwag
Copy link
Owner

@jahwag jahwag commented Aug 30, 2024

Experimental features for compressing project context window size.

  • Claude doesn't support anything but "pack" and possibly short files using "rle", "dictionary". But they're inefficient.
  • "pack" is very fast - far faster than syncing individual files. I use this. Leaving default untouched.

Compression Algorithm Comparison

Original Project Size: 50.80 KB

Algorithm Compressed Size (KB) Compression Factor Notes
RLE 446.70 KB 0.11x Not suitable for non-repetitive data, significantly increases file size.
Huffman 44.35 KB 1.15x Modest compression, effective only for specific data types.
Dictionary 40.25 KB 1.26x Simple, fast compression with limited effectiveness.
bz2 9.39 KB 5.41x Good compression, slightly slower than zlib.
zlib 9.24 KB 5.49x Balanced choice with good compression and speed.
LZMA 8.76 KB 5.80x Best compression, but slower to process.

Note. Compression factor increases on larger projects.

@jahwag jahwag merged commit 1026d5c into master Aug 30, 2024
3 checks passed
@jahwag jahwag deleted the claudesync-0-5-5 branch August 30, 2024 19:54
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