[Webkit-unassigned] [Bug 148388] We should also store the time information for recent searches
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 1 21:01:56 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=148388
--- Comment #30 from Darin Adler <darin at apple.com> ---
(In reply to comment #29)
> (In reply to comment #28)
> > > Source/WebKit/mac/WebCoreSupport/SearchPopupMenuMac.mm:99
> > > + [recentSearchesPlist writeToFile:searchFieldRecentSearchesPlistPath() atomically:YES];
> >
> > Using atomically:YES is costly in performance and in NAND life. We should be
> > sure this is necessary.
>
> I am setting it to YES because I am afraid the file might be corrupted while
> writing. With my previous approach of reading the plist from disk, I assume
> the file should be in the expected format. Your suggestions above will
> alleviate the problem. But I still think we should write atomically, what do
> you think?
No, I donât think we should do the atomic write. In theory it might reduce the chance that the file will be corrupted, but in practice I think its cost outweighs its benefit. Should probably talk to some other WebKit experts about it.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151002/03277763/attachment.html>
More information about the webkit-unassigned
mailing list