Page names kept in RAM: /api/pages 1.8 s -> 1.05 s

Measured on the display with 16 pages: listing the directory took 350 ms,
and every loadPage() first asked LittleFS whether the file exists (26 ms
each) before opening it (25 ms) and reading it (11 ms); drawing all
previews took only 29 ms. The names of the stored pages are now kept
until a page is saved or deleted, and storedPage() looks there instead
of calling exists().

Version 2.19.1, tested on the display over OTA (save, list, delete).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-10-20 22:31:01 +02:00
1 parent 0166d0ee46
commit 72a193130e
2 files changed
+31 -6

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ const uint32_t SETUP_AP_DELAY = 20000; // open the AP when WiFi fails thi
const uint32_t WIFI_CONNECT_TIMEOUT = 30000;
const uint32_t WIFI_RESTART_TIME = 10UL * 60 * 1000;
#define FIRMWARE_VERSION "2.19.0"
#define FIRMWARE_VERSION "2.19.1"
// Home Assistant device id (do not change: Home Assistant's entities are linked to it)
const uint8_t HA_DEVICE_ID[] = {0x34, 0x86, 0x5d, 0x3a, 0x08, 0x28};