forked from dlang/cdcdb
Числовой показатель компрессии
This commit is contained in:
parent
8639c36f46
commit
df1af87322
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue