utf-c

Crates.ioutf-c
lib.rsutf-c
version1.1.0
created_at2024-10-30 03:28:35.491824+00
updated_at2025-08-11 23:57:03.554379+00
descriptionA small and simple compression for UTF-8 texts
homepagehttps://utf-c.com
repositoryhttps://github.com/utf-c/rust
max_upload_size
id1427963
size46,660
Nick I. A. (ThisAccountHasBeenSuspended)

documentation

README

0️⃣1️⃣0️⃣0️⃣0️⃣0️⃣1️⃣1️⃣

Crates.io Version MIT License

UTF-C is a compression for short UTF-8 texts with non-ASCII characters (See the comparisons below).

[!NOTE] Support for SSE2, AVX2, AVX512 and NEON.

Check out the features in the Cargo.toml!

Comparison

[!IMPORTANT] Please create your own comparison and check if this compression is suitable for your project!

🪟 Windows 11 Pro (24H2)

CPU: Intel Core i5-14400f (10c/16t)
SIMD: SSE2
RAM: 2x 8GB DDR4-3600

TEXT: טקסט זה נדחס עם UTF-C ו-GZIP ולאחר מכן הושווה. טקסט זה תורגם עם Google Translate ואנו מקווים שהוא תורגם כהלכה, אך אין ערובה לכך
LENGTH: 204 (Original) | 129 (UTF-C) | 160 (FLATE2)

=============================================
                    UTF-C                    
=============================================
compression:   [340.83 ns 341.22 ns 341.64 ns] [569.45 MiB/s 570.15 MiB/s 570.82 MiB/s]
decompression: [368.41 ns 369.50 ns 370.86 ns] [524.58 MiB/s 526.53 MiB/s 528.07 MiB/s]

=============================================
                   FLATE2                    
=============================================
compression:   [11.582 µs 11.613 µs 11.650 µs] [16.700 MiB/s 16.752 MiB/s 16.798 MiB/s]
decompression: [5.0996 µs 5.1130 µs 5.1298 µs] [37.926 MiB/s 38.050 MiB/s 38.150 MiB/s]
Commit count: 25

cargo fmt