Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Fetch subresources concurrently.#61

Merged
twifkak merged 6 commits intogoogle:mainfrom
twifkak:concurrent
Sep 20, 2021
Merged

Fetch subresources concurrently.#61
twifkak merged 6 commits intogoogle:mainfrom
twifkak:concurrent

Conversation

@twifkak
Copy link
Copy Markdown
Contributor

@twifkak twifkak commented Sep 16, 2021

Requires interior mutability for HeaderIntegrityFetcher, so that a fine-grained
lock can be held for just the mutable HttpCache, without blocking access to the
immutable Fetcher in parallel.

Added a unit test that the operation completes when fetches are returned out of
order.

Fixes #13.

/cc @oliy

Requires interior mutability for HeaderIntegrityFetcher, so that a fine-grained
lock can be held for just the mutable HttpCache, without blocking access to the
immutable Fetcher in parallel.

Added a unit test that the operation completes when fetches are returned out of
order.
@twifkak twifkak requested a review from antiphoton September 16, 2021 00:02
@twifkak twifkak force-pushed the concurrent branch 4 times, most recently from 9bc8980 to fd8b26b Compare September 16, 2021 00:26
@twifkak twifkak requested a review from banaag September 16, 2021 17:51
Add a test that demonstrates cache.get calls resolving out of order, and fix it
by requiring interior mutability for HttpCache, and removing RefCell.
@twifkak twifkak merged commit 95f9522 into google:main Sep 20, 2021
@twifkak twifkak deleted the concurrent branch September 20, 2021 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process the Link header for validity & subresource preloading

3 participants