Adapt upstream PR 1638 -use deque to increase usable epub size

This commit is contained in:
jpirnay
2026-04-11 20:48:48 +02:00
parent 155f0c77ac
commit 5e08794706
5 changed files with 15 additions and 14 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
#include <Print.h>
#include <algorithm>
#include <deque>
#include <vector>
#include "Epub.h"
@@ -40,7 +41,7 @@ class ContentOpfParser final : public Print {
uint16_t idLen; // length for collision reduction
uint32_t fileOffset; // offset in .items.bin
};
std::vector<ItemIndexEntry> itemIndex;
std::deque<ItemIndexEntry> itemIndex;
bool useItemIndex = false;
static constexpr uint16_t LARGE_SPINE_THRESHOLD = 400;