diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-05-15 13:02:45 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-05-15 14:36:13 +0100 |
commit | 85330edd0bacfaf9a83b23e828cf84a4028f3c16 (patch) | |
tree | 33844e80d1240ed7fe9553d09ea0fc9635793af8 /source/html | |
parent | 86f62075afa178b222e6bc0f9fdc79f82d441df0 (diff) | |
download | mupdf-85330edd0bacfaf9a83b23e828cf84a4028f3c16.tar.xz |
pdf_dict_find optimisation.
When doing pdf_dict_put, we first call pdf_dict_find to hunt for an
existing entry we can just update.
Recently we introduced a 'location' return from pdf_dict_find that
would (in the non-found case) return the location of where such an
entry should be inserted.
It's just dawned on me that we don't need a separate variable for
this. We continue to return negative numbers for 'not found', but
these negative numbers can contain the insertion point.
Diffstat (limited to 'source/html')
0 files changed, 0 insertions, 0 deletions