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 -2
View File
@@ -3,8 +3,8 @@
#include <HalStorage.h>
#include <algorithm>
#include <deque>
#include <string>
#include <vector>
class BookMetadataCache {
public:
@@ -64,7 +64,7 @@ class BookMetadataCache {
uint16_t hrefLen; // length for collision reduction
int16_t spineIndex;
};
std::vector<SpineHrefIndexEntry> spineHrefIndex;
std::deque<SpineHrefIndexEntry> spineHrefIndex;
bool useSpineHrefIndex = false;
static constexpr uint16_t LARGE_SPINE_THRESHOLD = 400;