From c50f483809115e191d10995a246502d448bd1dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marja=20H=C3=B6ltt=C3=A4?= Date: Wed, 3 Apr 2024 13:23:59 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c30d6d..0fc139b 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,9 @@ If a JavaScript function ends up being called during page load, doing the parsin Based on initial experiments, Google Docs report 5-7% improvement in their userland page load metrics with our prototype implementation, when selecting the core JS file for eager compilation. -Currently, Chromium and Firefox use the [PIFE heuristic](https://v8.dev/blog/preparser#pife) to direct which functions to compile. This heuristic has existed for a long time and is well known to web developers. Safari doesn't follow the heuristic. +Currently, Chromium and Firefox use the [PIFE heuristic](https://v8.dev/blog/preparser#pife) to direct which functions to compile. This heuristic has existed for a long time and is well known to web developers - some web pages (e.g., Facebook) use it or have used it for triggering eager compilation. Safari doesn't follow the heuristic. -Using PIFEs for transmitting information about which functions should be eager-compiled has downsides, though. Especially: +Using PIFEs for triggering eager compilation has downsides, though. Especially: - using it forces using function expressions instead of function declarations. The semantics of function expressions mandate doing the assignment, so they're generally less performant than function declarations. For browsers which don't follow the PIFE hint there's no upside - it cannot be applied to ES6 class methods