• Tibor Goldschwendt's avatar
    [webui][ntp] Enable process-per-site · 52e168cf
    Tibor Goldschwendt authored
    Process-per-site makes all WebUI NTPs share a single renderer process.
    This is what the local NTP does and has the following performance
    advantages (measured on my linux machine):
    
    * Reduces mean of NewTabPage.LoadTime.WebUINTP (duration from starting
      the NTP navigation until the most visited items are added to the DOM)
      from 271ms to 141ms.
    
    * Reduces memory overhead of opening a new NTP from ~30MB to ~5MB.
    
    NOTE: The aforementioned performance improvements only hold true if
    another NTP is open to have the process pre-warmed. The WebUI NTP does
    not seem to use the pre-warmed spare renderer.
    
    + Move existing WebUI NTP browser test to //c/b/ui/webui/new_tab_page.
    
    Bug: 1075641
    Change-Id: Id94294eac41e3ab083e8eece567941ef4d40d08b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2220634
    Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
    Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
    Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
    Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#773865}
    52e168cf
ntp_navigation_browsertest.cc 1.71 KB