From 7abbce187078fdd6075218f1419373687f855a2e Mon Sep 17 00:00:00 2001 From: "smfr%smfr.org" Date: Sun, 13 Nov 2005 04:56:22 +0000 Subject: [PATCH] Commenting out additional stat on bookmarks file to measure startup perf impact. --- camino/src/bookmarks/BookmarkManager.mm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/camino/src/bookmarks/BookmarkManager.mm b/camino/src/bookmarks/BookmarkManager.mm index 2f7db628966..df984160519 100644 --- a/camino/src/bookmarks/BookmarkManager.mm +++ b/camino/src/bookmarks/BookmarkManager.mm @@ -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);