Changeset dba4a23 in mainline for uspace/srv/fs/fat/fat_ops.c


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_ops.c

    r6da81e0 rdba4a23  
    106106        node->lastc_cached_valid = false;
    107107        node->lastc_cached_value = FAT_CLST_LAST1;
     108        node->currc_cached_valid = false;
     109        node->currc_cached_bn = 0;
     110        node->currc_cached_value = FAT_CLST_LAST1;
    108111}
    109112
Note: See TracChangeset for help on using the changeset viewer.