[Webkit-unassigned] [Bug 227001] Too much CPU time is spent under MemoryPressureHandler::currentMemoryUsagePolicy()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 14 21:48:48 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=227001

--- Comment #1 from Ben Nham <nham at apple.com> ---
Maybe we should just ditch computing the memory footprint on every call and map MemoryUsagePolicy to OS memory pressure levels (e.g. unrestricted => normal pressure, conservative => warning pressure, strict => critical pressure). Then we could just rely on the OS memory pressure notification handler to update MemoryUsagePolicy.

I guess the other obvious thing to do here is to cache the memoryFootprint for X seconds.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210615/d8639fd5/attachment.htm>


More information about the webkit-unassigned mailing list