Commenting out additional stat on bookmarks file to measure startup perf impact.

This commit is contained in:
smfr%smfr.org 2005-11-13 04:56:22 +00:00
Родитель 7038613018
Коммит 7abbce1870
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -1712,8 +1712,9 @@ static BookmarkManager* gBookmarkManager = nil;
BOOL success = [dict writeToFile:backupFile atomically:YES];
if (success)
{
long long bmFileSize = [[NSFileManager defaultManager] sizeOfFileAtPath:backupFile traverseLink:YES];
if (bmFileSize > 0)
// XXX removed to measure hit on startup perf
// long long bmFileSize = [[NSFileManager defaultManager] sizeOfFileAtPath:backupFile traverseLink:YES];
// if (bmFileSize > 0)
{
NSFileManager* fm = [NSFileManager defaultManager];
BOOL removedOld = [fm removeFileAtPath:stdPath handler:self]; // out with the old...
@ -1723,8 +1724,8 @@ static BookmarkManager* gBookmarkManager = nil;
stdPath, removedOld,
backupFile, movedNew);
}
else
NSLog(@"writePropertyList: saved bookmarks file was empty (%qi bytes))", bmFileSize);
// else
// NSLog(@"writePropertyList: saved bookmarks file was empty (%qi bytes))", bmFileSize);
}
else
NSLog(@"writePropertyList: Failed to write file %@", pathToFile);