News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

advice on file random access and other things

Started by daydreamer, January 28, 2020, 12:16:37 AM

Previous topic - Next topic

daydreamer

question is memorymapped file way to go and can it be used appending existing file too
is there a random access function as well,so you can command pointer to point at x number of bytes into file,before write to change,or to read and thats probably a long integer 64bit?ยจ
create&delete folder?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

#1
I have tested write to huge textfile and no matter if loop count is 10billions or 100 billions,its only possible to create a 13gb file
its time to go asm program,because testing on older computer it refuses to work,complaining about a missing DLL
long ago there was some kinda API for writing and reading inside zipfiles,that would be good to have
I will remove this attachment later,so its no waste of serverspace,but wow what a compression :greenclp:
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

#2
gets error 2005 later in file,when trying to use append,when putting it into a windows program
;mov cloc, fseek(hFile,0,FILE_END)           ; set the file pointer to the end


I want to try timing filetest on many different drives later,because I want to know how it affects app using files, from oldest computer/external old drive,to newest fastest drive
strange append worked on console.but not windows program???
started with timing,first I use one file opened and if take too long,so I abort it,it writes file so far,second file open to write millisecond results and later other statistics dont get written at all
which is opened after the first one closed

works on 3 different computes
when minimized or not activewindow,what api is to show 0-100% instead of programs name?
cant find integer to ascii,or 64bit long or float or double to ascii convert
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

disk write test,write 260mb big test file and writes result of timing in stats.txt and shows messagebox
millis: external new HD
54922
millis: internal HD,at same time it runs windows 8
24282
millis: external new USB stick
17125

please test
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

now workerthread handles filewrite/read works great,but only tested on multicores yet
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

I decided to write incremental save function ala my scanner software has, and some programs has
but also interested in knowing the differences between file macros in masm64?
and maybe file handling in workerthread would be standard on 64bit?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

K_F

'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'