Skip to content
QyttePublic

About

Lossless data compression infrastructure for streaming, batch analytics, AI data, and real-time feeds — featuring QSwift, Qompress, QStream, and QAi.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Qytte — Lossless Data Compression Infrastructure

Less data. More possibility.
High-performance lossless compression engines, unified decoders, and profile-driven storage optimizers for real-time streams, telemetry, AI datasets, and enterprise archives.

Website License: MIT Verified Lossless


Overview

Modern data pipelines face a dilemma: choose extreme speed with weak compression (Snappy, LZ4), or choose high density with crippling encode latency and high CPU costs (Zstandard 19, Brotli 11).

Qytte bridges this gap with an ecosystem of specialized engines engineered for exact requirements:

  • Streaming & High-Throughput I/O: Encode at 500+ MB/s and restore at 1.5–2.1 GB/s.
  • Maximum Storage Reduction: Up to 93.02% reduction on analytics data, beating standard maximum compression levels while decompressing significantly faster.
  • Unified Decoding: A single CLI/API command restores all compression modes without format flags or manual guessing.
  • Zero Loss: Every engine enforces 100% byte-for-byte lossless verification.

Core Technologies

1. QSwift (4-in-1 Lossless Engine)

QSwift packages four purpose-built lossless engines into one lightweight binary:

  • QLz: Pure speed, single-probe greedy LZ matching. Outperforms Snappy on decode throughput and compression density.
  • Flash: High-throughput streaming mode designed for real-time RPC, logging, and memory-constrained microservices (up to 2,102 MB/s decode).
  • Turbo (Default): Balanced high-speed mode featuring adaptive digit-heavy data detection and number splitting for superior density at wire speed.
  • Maximus: Deep-density mode combining heuristic pattern transformations, BCJ executable filters, and multi-frame optimization to maximize storage savings.
  • Unified Decoder: Decompresses any QSwift stream (qswift -d) with zero format flags.

2. Qompress (Unified Multi-Codec Facade)

A single, consistent C99 and JavaScript/Node.js API wrapping the industry's six premier standard engines:

  • Zstandard (zstd), Brotli (brotli), LZ4 Frame (lz4), zlib (zlib), gzip (gzip), and Snappy (snappy).
  • Eliminates disparate vendor libraries and inconsistent buffer semantics across languages.

3. QStream & Smart Builder (Profile Optimizer)

  • Transforms repeated enterprise payloads (JSON events, log lines, sensor telemetry) into ultra-dense storage.
  • Trains deterministic, reusable dictionary profiles (.qsm) once across sample batches, achieving up to 71.9% net batch storage reduction on small JSON payloads.

4. QAi (AI Data Optimizer)

  • Tailored compression workflows spanning 7 key AI and ML data categories: training checkpoints, tensor batches, embeddings, JSON usage logs, and Parquet data.
  • Delivers up to 96% reduction on structured AI billing records and 94.41% average reduction across diverse AI payloads.

5. Leroue (Financial Feed Engine & Archive)

  • Sub-microsecond live encoding for high-frequency market data feeds (ITCH, OUCH, BBO, trade ticks).
  • Column-delta LSplit and indexed LRA archive containers for rapid historical time-series replay.

Key Advantages

  • Superior Decode Speeds: QSwift Flash and QLz decompress at 1,100–2,100+ MB/s on standard CPU cores, eliminating decompression bottlenecks on client and server nodes.
  • Uncompromised Density: QSwift Maximus achieves 79.01% reduction on standard reference sets and 93.02% on ClickBench analytics, exceeding Zstandard Level 19 with 2× to 4× the decode speed.
  • Single Decoder Architecture: One unified restore path (qswift -d <file> or qswift_decode()) automatically detects the stream signature and restores original bytes.
  • No Heavy Dependencies: Standalone C99/C++ implementations with zero mandatory external library bloat.
  • Zero Lock-In: Core engines are MIT licensed; Qompress integrates directly with standard, battle-tested open-source algorithms.

Benchmark Highlights

All benchmarks are measured natively on dedicated hardware, byte-verified, and cross-tested against official reference implementations.

1. Reference Suite (30 Diverse Files — Text, Code, Binaries, Logs)

Compressor / Mode Reduction (%) Ratio Encode Speed Decode Speed
QSwift Flash 56.99% 2.32× 544.8 MB/s 2,102.4 MB/s
QLz 56.53% 2.30× 617.6 MB/s 1,774.4 MB/s
Snappy 1.2.1 52.91% 2.12× 778.9 MB/s 1,072.5 MB/s
QSwift Turbo 74.09% 3.86× 228.8 MB/s 971.6 MB/s
Zstandard 3 70.28% 3.36× 350.7 MB/s 1,199.7 MB/s
QSwift Maximus 79.01% 4.76× 1.3 MB/s 553.8 MB/s
Brotli 11 78.26% 4.60× 0.8 MB/s 387.6 MB/s
Zstandard 19 76.24% 4.21× 3.9 MB/s 1,008.0 MB/s

2. Silesia Benchmark (211.96 MB Standard Corpus)

Compressor / Mode Reduction (%) Output Size Encode Speed Decode Speed
QSwift Flash 52.47% 100.74 MB 442.9 MB/s 1,954.6 MB/s
QLz 52.71% 100.24 MB 451.0 MB/s 1,109.5 MB/s
Snappy 1.2.1 52.18% 101.35 MB 549.1 MB/s 824.0 MB/s
QSwift Turbo 68.82% 66.10 MB 268.3 MB/s 1,044.9 MB/s
Zstandard 3 68.79% 66.16 MB 271.8 MB/s 1,031.8 MB/s
QSwift Maximus 75.40% 52.14 MB 2.9 MB/s 337.0 MB/s
Zstandard 19 75.04% 52.90 MB 3.1 MB/s 949.4 MB/s

3. ClickBench 100 MB Analytics (Large Tabular & JSON Data)

Compressor / Mode Reduction (%) Output Size Decode Speed
QSwift Maximus 93.02% 6.98 MB 430.8 MB/s
Zstandard 19 92.96% 7.04 MB 1,373.1 MB/s
QSwift Turbo 89.18% 10.82 MB 1,235.6 MB/s
Zstandard 3 89.18% 10.82 MB 1,270.4 MB/s
QSwift Flash 81.35% 18.65 MB 1,623.5 MB/s
Snappy 1.2.1 77.24% 22.76 MB 1,056.4 MB/s

Quickstart

Build QSwift from Source

git clone https://github.com/qytte/qswift.git
cd qswift
make

Compress & Decompress via CLI

# Turbo compression (balanced default)
./qswift -e turbo data.csv -o data.csv.qsw

# Flash compression (maximum decode speed)
./qswift -e flash server.log -o server.log.qsw

# Maximus compression (maximum density)
./qswift -e max archive.tar -o archive.tar.qsw

# Unified decompression (auto-detects any QSwift format)
./qswift -d data.csv.qsw -o data.csv

C99 API Example

#include "qswift.h"

// Compression with auto mode
size_t max_out = qswift_compress_bound(input_len);
uint8_t *out = malloc(max_out);
size_t comp_len = qswift_compress(input_data, input_len, out, max_out, QSWIFT_MODE_TURBO);

// Unified decompression
uint8_t *restored = malloc(original_len);
size_t dec_len = qswift_decompress(out, comp_len, restored, original_len);

Verification & Integrity

All Qytte engines use cryptographic round-trip checking:

  1. Every compression output is checked against the input SHA-256 before release.
  2. Formats carry internal checksums and length headers to reject malformed or truncated streams instantly.
  3. Native engines and JavaScript/WASM references maintain cross-platform byte compatibility.

Resources & Links

About

Lossless data compression infrastructure for streaming, batch analytics, AI data, and real-time feeds — featuring QSwift, Qompress, QStream, and QAi.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors