1
0
Fork 0
forked from dlang/cdcdb

Числовой показатель компрессии

This commit is contained in:
Alexander Zhirov 2025-09-13 02:54:13 +03:00
parent 8639c36f46
commit df1af87322
Signed by: alexander
GPG key ID: C8D8BE544A27C511
2 changed files with 2 additions and 4 deletions

View file

@ -43,7 +43,6 @@ import cdcdb;
import std.stdio : writeln, File; import std.stdio : writeln, File;
import std.file : exists, remove; import std.file : exists, remove;
import zstd : Level;
void main() void main()
{ {
@ -51,7 +50,7 @@ void main()
string dbPath = "example.db"; string dbPath = "example.db";
// Initialize Storage with Zstd compression // Initialize Storage with Zstd compression
auto storage = new Storage(dbPath, true, Level.speed); auto storage = new Storage(dbPath, true, 22);
// Create a snapshot // Create a snapshot
ubyte[] data = cast(ubyte[]) "Hello, cdcdb!".dup; ubyte[] data = cast(ubyte[]) "Hello, cdcdb!".dup;

View file

@ -43,7 +43,6 @@ import cdcdb;
import std.stdio : writeln, File; import std.stdio : writeln, File;
import std.file : exists, remove; import std.file : exists, remove;
import zstd : Level;
void main() void main()
{ {
@ -51,7 +50,7 @@ void main()
string dbPath = "example.db"; string dbPath = "example.db";
// Инициализация Storage с компрессией Zstd // Инициализация Storage с компрессией Zstd
auto storage = new Storage(dbPath, true, Level.speed); auto storage = new Storage(dbPath, true, 22);
// Создание снимка // Создание снимка
ubyte[] data = cast(ubyte[]) "Hello, cdcdb!".dup; ubyte[] data = cast(ubyte[]) "Hello, cdcdb!".dup;