[Webkit-unassigned] [Bug 184015] API::SharedJSContext caches its JSContext for at most one second

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 16 11:57:11 PDT 2018


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

--- Comment #8 from Keith Miller <keith_miller at apple.com> ---
(In reply to Geoffrey Garen from comment #7)
> ...I think it's also OK to increase the timer to something like 10s or 30s
> -- but it's not clear that would fully solve the performance complaint here.
> 
> I don't agree with the suggestion to rely on a memory pressure event. Caches
> that only evict upon memory pressure create a tragedy of the commons where
> memory pressure events become more common, and then you just always evict
> all of your caches all of the time. It is preferable, when possible, to
> evict eagerly when you know you don't need your cache anymore.

We could also evict the cache on after some number of full GCs where it's unused.

-- 
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/20180816/cfbe75d8/attachment.html>


More information about the webkit-unassigned mailing list