mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 14:41:23 +02:00
- change the crc cache file names to avoid excessively long filenames and to see if this improves performance and fixes buggy behaviour.
This commit is contained in:
@@ -576,11 +576,17 @@ void setCRCCacheFilePath(string path) {
|
||||
|
||||
string getFormattedCRCCacheFileName(std::pair<string,string> cacheKeys) {
|
||||
string crcCacheFile = cacheKeys.first + cacheKeys.second;
|
||||
replaceAll(crcCacheFile, "/", "_");
|
||||
replaceAll(crcCacheFile, "\\", "_");
|
||||
replaceAll(crcCacheFile, "*", "_");
|
||||
replaceAll(crcCacheFile, ".", "_");
|
||||
return getCRCCacheFilePath() + crcCacheFile;
|
||||
//replaceAll(crcCacheFile, "/", "_");
|
||||
//replaceAll(crcCacheFile, "\\", "_");
|
||||
//replaceAll(crcCacheFile, "*", "_");
|
||||
//replaceAll(crcCacheFile, ".", "_");
|
||||
//return getCRCCacheFilePath() + crcCacheFile;
|
||||
|
||||
Checksum checksum;
|
||||
checksum.addString(crcCacheFile);
|
||||
string result = getCRCCacheFilePath() + "CRC_CACHE_" + intToStr(checksum.getSum());
|
||||
//printf("result [%s]\n",result.c_str());
|
||||
return result;
|
||||
}
|
||||
std::pair<string,string> getFolderTreeContentsCheckSumCacheKey(vector<string> paths, string pathSearchString, const string filterFileExt) {
|
||||
string cacheLookupId = CacheManager::getFolderTreeContentsCheckSumRecursivelyCacheLookupKey1;
|
||||
|
Reference in New Issue
Block a user