2025-07-22 02:46 CEST

View Revisions: Issue #4075

Summary 0004075: unitsync speedup
Revision 2013-10-18 11:48 by abma
Description current unitsync is pretty slow on init with many archives:

- a new (mostly downloaded) file can't be added to the list of maps/games
without recalling init, init is pretty slow as it scans through all folders, some call like bool AddArchivetoCache(absarchivepath) is needed

- it should be possible to disable scanning for new files on init, only the cache content should be used, this could be used for starting a game as well
-> when requested archive is not found in cache / on filesystem, rescan can be done, in unitsync something like UseCacheOnly(true)
Revision 2013-10-18 11:50 by abma
Description current unitsync is pretty slow on init with many archives:

1. a new (mostly downloaded) file can't be added to the list of maps/games
without recalling init, init is pretty slow as it scans through all folders, some call like bool AddArchivetoCache(absarchivepath) is needed

2. it should be possible to disable scanning for new files on init, only the cache content should be used, this could be used for starting a game as well
-> when requested archive is not found in cache / on filesystem, rescan can be done, in unitsync something like UseCacheOnly(true)