Небольшая оптимизация

This commit is contained in:
Alexander Zhirov 2025-09-12 13:16:31 +03:00
parent c8d21bc3ce
commit 4f735abae7
Signed by: alexander
GPG key ID: C8D8BE544A27C511
3 changed files with 52 additions and 34 deletions

View file

@ -7,10 +7,10 @@ import std.file : read;
void main()
{
auto cas = new CAS("/tmp/base.db", true);
// cas.newSnapshot("/tmp/text", "Файл для тестирования", cast(ubyte[]) read("/tmp/text"));
import std.stdio : writeln;
cas.newSnapshot("/tmp/text", cast(ubyte[]) read("/tmp/text"));
// import std.stdio : writeln;
writeln(cas.getSnapshotList("/tmp/text"));
// writeln(cas.getSnapshotList("/tmp/text"));
writeln(cas.getVersion);
// writeln(cas.getVersion);
}