Bug 208785

Summary: Remember completed subranges during incremental PDF loading
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit Misc.Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, saam, thorton, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
thorton: review+
PFL
none
PFL none

Description Brady Eidson 2020-03-08 10:06:30 PDT
Remember completed subranges during incremental PDF loading

We'll often get asked for the same range twice, or for range contained in previously requested ranges.

To make that (orders of magnitude) more efficient, we should remember which ranges in the PDF buffer have previously been requested.
Comment 1 Brady Eidson 2020-03-08 15:44:02 PDT
Created attachment 392995 [details]
Patch
Comment 2 Brady Eidson 2020-03-08 15:52:09 PDT
This relies on the patch in https://bugs.webkit.org/show_bug.cgi?id=208790 landing first (hence lots of failures)
Comment 3 Brady Eidson 2020-03-08 16:07:24 PDT
Created attachment 392996 [details]
PFL
Comment 4 Brady Eidson 2020-03-08 16:24:33 PDT
Created attachment 392998 [details]
PFL
Comment 5 WebKit Commit Bot 2020-03-08 17:42:53 PDT
The commit-queue encountered the following flaky tests while processing attachment 392998 [details]:

editing/spelling/spellcheck-async-remove-frame.html bug 160571 (authors: morrita@google.com, rniwa@webkit.org, and tony@chromium.org)
The commit-queue is continuing to process your patch.
Comment 6 WebKit Commit Bot 2020-03-08 17:43:33 PDT
Comment on attachment 392998 [details]
PFL

Clearing flags on attachment: 392998

Committed r258123: <https://trac.webkit.org/changeset/258123>
Comment 7 WebKit Commit Bot 2020-03-08 17:43:35 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2020-03-08 17:44:15 PDT
<rdar://problem/60207010>