diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-09-19 13:36:56 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-09-19 16:49:18 +0100 |
commit | 9d430e88deff3e7f0c88ae14edfd0f11331fb53d (patch) | |
tree | ffc4700b884ad7247164ae389c61aafe145608df /source/fitz/path.c | |
parent | e22bf36d2db07a3557588ad7cb2d4ccfccb9679f (diff) | |
download | mupdf-9d430e88deff3e7f0c88ae14edfd0f11331fb53d.tar.xz |
fz_store: Reap passes.
A few commits back, we introduced the fz_key_storable concept
to allow us to cope with objects that were used both as values
within the store and as parts of keys within the store.
This commit worked, but showed up performance problems; when the
store has several million PDF objects in it, bulk changes (such
as dropping a display list or document) could trigger many passes
across the store.
We therefore introduce a mechanism to ameliorate this. These
passes, now known as "reap passes", can be batched together using
fz_defer_reap_start and fz_defer_reap_end.
We trigger this start/end around display list dropping, and around
PDF content stream processing. This should be fine, as deferral
will be interrupted if we ever run our of memory during mallocing.
Diffstat (limited to 'source/fitz/path.c')
0 files changed, 0 insertions, 0 deletions