Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  TAP_Hdd_Fwrite Operation

Page 1 of 1
EMJB
Posted: Thu Sep 08, 2011 7:20 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3632 Location: Maldon Essex
I am trying to optimise the memory utilisation of my SerialTransfer TAP, and am concerned that files could end up having one copy in "my" memory and another in memory allocated by TAP_Hdd_FWrite. This could be embarassing for large files on a TF5810.

If a file is written as a series of write operations on individual segments, is:

(1) The file complete file assembled in memory and only written to disc when the file is closed.

or:

(2) Each segment of the file is written to disc separately without any additional buffering?

or something else I haven't thought of.

TIA,

EMJB
View user's profile Send private message
R2-D2
Posted: Thu Sep 08, 2011 8:47 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
Each call to TAP_Hdd_Fwrite() writes immediately to disk, although in some circumstances it may need to use some small, static buffers (so no extra memory is actually used).

_________________
Troubleshooting -- User Manual -- Dark Side of the Matrix: Firmwares and Patches
View user's profile Send private message Visit poster's website
EMJB
Posted: Fri Sep 09, 2011 7:13 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3632 Location: Maldon Essex
R2-D2 wrote:
Each call to TAP_Hdd_Fwrite() writes immediately to disk, although in some circumstances it may need to use some small, static buffers (so no extra memory is actually used).

Good news, thanks very much.

EMJB
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum