For discussions about development of TAPs, patches and other software for the Toppy

Moderator: Technical

Post Reply
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

TAP_Hdd_Fwrite Operation

Post by EMJB »

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
R2-D2
Frequent contributor
Posts: 12148
Joined: Mon Dec 18, 2006 11:15 am
Contact:

Post by R2-D2 »

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).
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

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
Post Reply