Changeset dba4a23 in mainline for uspace/srv/fs/fat/fat.h


Ignore:
Timestamp:
2010-07-28T15:22:22Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4637c72, 9a1d8ab
Parents:
6da81e0
Message:

Speed up sequential I/O by caching the "current" cluster in fat_block_get().
This improves sequentil read of a 5m file (using the cat command) by 45 seconds
(73s → 28s).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat.h

    r6da81e0 rdba4a23  
    213213
    214214        /*
    215          * Cache of the node's last cluster to avoid some unnecessary FAT walks.
     215         * Cache of the node's last and "current" cluster to avoid some
     216         * unnecessary FAT walks.
    216217         */
    217         bool                    lastc_cached_valid;
    218         fat_cluster_t           lastc_cached_value;
     218        /* Node's last cluster in FAT. */
     219        bool            lastc_cached_valid;
     220        fat_cluster_t   lastc_cached_value;
     221        /* Node's "current" cluster, i.e. where the last I/O took place. */
     222        bool            currc_cached_valid;
     223        aoff64_t        currc_cached_bn;
     224        fat_cluster_t   currc_cached_value;
    219225} fat_node_t;
    220226
Note: See TracChangeset for help on using the changeset viewer.