aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-12-21 21:45:34 +0100
committerJay Berkenbilt <ejb@ql.org>2023-12-21 21:45:34 +0100
commitbb12a7ff8df1582a2cb0583bc463a84f5a736219 (patch)
tree0bbc71dbbd9745a14c699bd732c725a122c58eeb
parentb8fd18ae562ab8bae1d2e67c1ab63ff4ea62124b (diff)
downloadqpdf-bb12a7ff8df1582a2cb0583bc463a84f5a736219.tar.zst
Tweak comment in QPDFParser refactor
-rw-r--r--ChangeLog5
-rw-r--r--libqpdf/qpdf/QPDFParser.hh2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c7bd1b2a..414244be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-12-21 Jay Berkenbilt <ejb@ql.org>
+
+ * From M. Holger: Refactor QPDFParser for performance. See #1059
+ for a discussion.
+
2023-12-20 Jay Berkenbilt <ejb@ql.org>
* Update code and tests so that qpdf's test suite no longer
diff --git a/libqpdf/qpdf/QPDFParser.hh b/libqpdf/qpdf/QPDFParser.hh
index 7f5f7804..9e2c3c2e 100644
--- a/libqpdf/qpdf/QPDFParser.hh
+++ b/libqpdf/qpdf/QPDFParser.hh
@@ -32,7 +32,7 @@ class QPDFParser
private:
// Parser state. Note:
- // state < st_dictionary_value == (state = st_dictionary_key || state = st_dictionary_value)
+ // state <= st_dictionary_value == (state = st_dictionary_key || state = st_dictionary_value)
enum parser_state_e { st_dictionary_key, st_dictionary_value, st_array };
struct StackFrame