Changes between Initial Version and Version 1 of Ticket #64, comment 21


Ignore:
Timestamp:
Nov 8, 2017, 10:59:35 AM (6 years ago)
Author:
erdmann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64, comment 21

    initial v1  
    55
    66With "inefficient sector handling" I mean that FAT32.IFS does a bad job in combining requests to read/write adjacent sectors/clusters. I once implemented this "adjacent sector/cluster combining" to improve read/write performance when calling FSH_DOVOLIO and in fact it worked.[[BR]]
    7 Unfortunately that had to be removed because of some high memory issue.
     7Unfortunately that had to be removed because of some high memory issue, see:
     8
     9"ifsfile.c", FS_READ and FS_WRITE:
     10
     11
     12{{{
     13#if 0
     14                    /*
     15                        The following code is fast, but is not compatible
     16                        with OBJ_ANY attribute
     17                    */
     18                    rc = ReadSector(pVolInfo, ulClusterSector,usSectorsToRead,pBufPosition, usIOFlag);
     19                    if (rc)
     20                    {
     21                        goto FS_READEXIT;
     22                    }
     23                    pBufPosition                    += (USHORT)ulCurrBytesToRead;
     24                    pos                             += (USHORT)ulCurrBytesToRead;
     25                    usBytesRead                     += (USHORT)ulCurrBytesToRead;
     26                    usBytesToRead                   -= (USHORT)ulCurrBytesToRead;
     27                    usAdjacentClusters              = 1;
     28                    pOpenInfo->ulCurCluster         = ulNextCluster;
     29#else
     30}}}
     31