From 0befcc026be9e4f6c40f8771c7f26f767ebddbf7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 30 Sep 2024 11:50:17 -0700 Subject: Erasing streams works, stream map building works. --- src/tests/bigmyriad.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/tests/bigmyriad.cpp') diff --git a/src/tests/bigmyriad.cpp b/src/tests/bigmyriad.cpp index 9d24741..cce309d 100644 --- a/src/tests/bigmyriad.cpp +++ b/src/tests/bigmyriad.cpp @@ -5,14 +5,15 @@ int main() { Bu::File f("big.myr", Bu::File::Read|Bu::File::Write|Bu::File::Create ); - Bu::Myriad m( f, 256, 12 ); + Bu::Myriad m( f, 1024, 12 ); - char *buf = new char[1024*1024*10]; +#define SSIZE (1024*8) // 1024*1024*10 + char *buf = new char[SSIZE]; for( int j = 0; j < 25; j++ ) { - memset( buf, j, 1024*1024*10 ); - m.create( Bu::Myriad::Write ).write( buf, 1024*1024*10 ); + memset( buf, j, SSIZE ); + m.create( Bu::Myriad::Write ).write( buf, SSIZE ); // m.sync(); printf("\r%03d%%", (j+1)*100/25 ); fflush( stdout ); -- cgit v1.2.3