mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
## Summary * Extract EPUB TOC into temp file before parsing * Streaming ZIP -> XML parser uses up a lot of memory as we're allocating inflation buffers while also holding a few copies of the buffer in different forms * Instead, but streaming the inflated file down to the SD card (like we do for HTML parsing, we can lower memory usage) ## Additional Context * This should help with https://github.com/daveallie/crosspoint-reader/issues/60 and https://github.com/daveallie/crosspoint-reader/issues/10. It won't remove those class of issues completely, but will allow for many more books to be opened.
11 lines
138 B
C++
11 lines
138 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct EpubTocEntry {
|
|
std::string title;
|
|
std::string href;
|
|
std::string anchor;
|
|
uint8_t level;
|
|
};
|