[Webkit-unassigned] [Bug 48484] Improve memSize calculation in [WebView _setCacheModel]
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 27 17:23:27 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=48484
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #72118|review?, commit-queue? |review+, commit-queue+
Flag| |
--- Comment #2 from Darin Adler <darin at apple.com> 2010-10-27 17:23:27 PST ---
(From update of attachment 72118)
View in context: https://bugs.webkit.org/attachment.cgi?id=72118&action=review
Changes look fine. I have a comment or two, but nothing we couldn’t tweak later.
> WebKit/mac/WebView/WebView.mm:5324
> + static uint64_t memSize = roundUpToPowerOf2(WebMemorySize() / 1024 / 1024);
Is it really worthwhile to store this in a global? Paying 8 bytes of global memory to avoid doing this math more than once might be the wrong tradeoff since we do this computation only when the cache model is changed.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list