Go to file
Claude 0b288c0f08 [inkplate] Optimize display performance with cached values
Reduce CPU overhead in display update loops by caching computed values:

- Cache data_mask_ and clock_ pin masks during setup() instead of
  recomputing them in every display function call
- Optimize hscan_start_() by using cached values instead of calling
  get_data_pin_mask_() on every row
- Cache height, width_bytes, buffer_len at start of display functions
  to avoid repeated virtual function calls in tight loops
- Precompute LUT base pointers in display3b_() to avoid k*256 index
  calculations in inner loop
- Hoist model checks (is_6_plus, needs_last_clock) outside loops to
  reduce branching in performance-critical paths

These optimizations reduce function call overhead and redundant
calculations in the display update paths, which are executed for
every pixel row during screen refresh.
2025-11-20 21:51:13 +00:00
2023-06-12 17:00:34 +12:00
2022-09-06 15:48:01 +12:00
2024-03-28 10:20:51 +13:00
2025-07-17 22:40:28 +12:00
2025-11-13 17:00:47 +13:00
2025-07-17 22:40:28 +12:00
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme Multiple Licenses 370 MiB
Languages
C++ 64.6%
Python 35.1%
C 0.2%