mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Introduce the concept of content reusability.
svn path=/trunk/netsurf/; revision=9563
This commit is contained in:
parent
7f369b829b
commit
4e5488ccfa
@ -30,10 +30,20 @@ High-level cache:
|
||||
+ Responsible for content objects.
|
||||
+ Tracks content dependencies (and potential cycles).
|
||||
+ Returns opaque handles to content objects.
|
||||
+ Manages content sharability.
|
||||
+ Manages content sharability & reusability (see below).
|
||||
+ Contents with unknown types are never shared and thus get unique handles.
|
||||
+ Content handles <> content objects: they're an indirection mechanism.
|
||||
|
||||
Content sharability & reusability
|
||||
--------------------------------
|
||||
|
||||
If a content is shareable, then it may have multiple concurrent users.
|
||||
Otherwise, it may have at most one user.
|
||||
|
||||
If a content is reusable, then it may be retained in the cache for later use
|
||||
when it has no users. Otherwise, it will be removed from the cache when
|
||||
it has no users.
|
||||
|
||||
Example: retrieving a top-level resource
|
||||
----------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user