Author Topic: advice on file random access and other things  (Read 2161 times)

daydreamer

  • Member
  • *****
  • Posts: 1934
  • "follow the blue star!!!"
advice on file random access and other things
« on: January 28, 2020, 12:16:37 AM »
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?
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
if you wanna see an asm missile ,there is already a builtin:
AAM also means "Air to Air Missile" :D

daydreamer

  • Member
  • *****
  • Posts: 1934
  • "follow the blue star!!!"
Re: advice on file random access and other things
« Reply #1 on: January 28, 2020, 02:56:34 AM »
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:
« Last Edit: January 28, 2020, 04:45:32 AM by daydreamer »
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
if you wanna see an asm missile ,there is already a builtin:
AAM also means "Air to Air Missile" :D

daydreamer

  • Member
  • *****
  • Posts: 1934
  • "follow the blue star!!!"
Re: advice on file random access and other things
« Reply #2 on: January 30, 2020, 02:15:15 AM »
gets error 2005 later in file,when trying to use append,when putting it into a windows program
Code: [Select]
;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
« Last Edit: January 30, 2020, 08:35:57 AM by daydreamer »
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
if you wanna see an asm missile ,there is already a builtin:
AAM also means "Air to Air Missile" :D

daydreamer

  • Member
  • *****
  • Posts: 1934
  • "follow the blue star!!!"
Re: advice on file random access and other things
« Reply #3 on: January 31, 2020, 06:33:00 AM »
disk write test,write 260mb big test file and writes result of timing in stats.txt and shows messagebox
Code: [Select]
millis: external new HD
54922
millis: internal HD,at same time it runs windows 8
24282
millis: external new USB stick
17125
please test
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
if you wanna see an asm missile ,there is already a builtin:
AAM also means "Air to Air Missile" :D

daydreamer

  • Member
  • *****
  • Posts: 1934
  • "follow the blue star!!!"
Re: advice on file random access and other things
« Reply #4 on: February 12, 2020, 09:46:39 PM »
now workerthread handles filewrite/read works great,but only tested on multicores yet
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
if you wanna see an asm missile ,there is already a builtin:
AAM also means "Air to Air Missile" :D

daydreamer

  • Member
  • *****
  • Posts: 1934
  • "follow the blue star!!!"
advice on file random access and other things in masm64?
« Reply #5 on: June 19, 2020, 09:02:26 PM »
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?
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
if you wanna see an asm missile ,there is already a builtin:
AAM also means "Air to Air Missile" :D

K_F

  • Member
  • *****
  • Posts: 1675
  • Anybody out there?
Re: advice on file random access and other things
« Reply #6 on: June 20, 2020, 01:26:01 AM »
You need friends  :biggrin:
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'