Skip to content

Commit

Permalink
osfile write support needs caching; Windows can be noticable slow due…
Browse files Browse the repository at this point in the history
… to many small write calls()
  • Loading branch information
mywave82 committed Dec 14, 2024
1 parent 1399d23 commit 9410a85
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 125 deletions.
2 changes: 1 addition & 1 deletion filesel/adbmeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ int adbMetaInit (const struct configAPI_t *configAPI)

retval = adbMetaInit_ParseFd (adbMetaFile);

osfile_purge_readaheadcache (adbMetaFile);
osfile_purge_readahead_cache (adbMetaFile);

fprintf (stderr, "Done\n");

Expand Down
4 changes: 2 additions & 2 deletions filesel/dirdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ int dirdbInit (const struct configAPI_t *configAPI)
dumpdirdb();
#endif

osfile_purge_readaheadcache (dirdbFile);
osfile_purge_readahead_cache (dirdbFile);

fprintf(stderr, "Done\n");
return 1;
Expand All @@ -348,7 +348,7 @@ int dirdbInit (const struct configAPI_t *configAPI)
dirdbData[i].next = dirdbFreeChild;
dirdbFreeChild = i;
}
osfile_purge_readaheadcache (dirdbFile);
osfile_purge_readahead_cache (dirdbFile);
return retval;
}

Expand Down
2 changes: 1 addition & 1 deletion filesel/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ int mdbInit (const struct configAPI_t *configAPI)

mdbCleanSlate = 0;

osfile_purge_readaheadcache (mdbFile);
osfile_purge_readahead_cache (mdbFile);

fprintf(stderr, "Done\n");
return 1;
Expand Down
Loading

0 comments on commit 9410a85

Please sign in to comment.