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.file : exists, remove;
|
||||
import zstd : Level;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -51,7 +50,7 @@ void main()
|
|||
string dbPath = "example.db";
|
||||
|
||||
// Initialize Storage with Zstd compression
|
||||
auto storage = new Storage(dbPath, true, Level.speed);
|
||||
auto storage = new Storage(dbPath, true, 22);
|
||||
|
||||
// Create a snapshot
|
||||
ubyte[] data = cast(ubyte[]) "Hello, cdcdb!".dup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue