• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jandelgado / jled / 30825557135
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: initialize_lazily_only_on_stm32
DEFAULT BRANCH: master
Ran 03 Aug 2026 03:03PM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Aug 2026 03:01PM UTC coverage: 96.755% (+0.03%) from 96.727%
30825557135

Pull #184

github

jandelgado
perf: ArduinoHal initializes eagerly by default, lazily only where STM32 needs it

Deferring pinMode()/analogWriteResolution() to the first analogWrite() call
was only ever needed on STM32duino, which forbids touching hardware from a
global constructor. All other Arduino-compatible platforms paid for the
"already set up" flag and its branch on every analogWrite() call for no
reason.

ArduinoHal gains a kLazyInit_ template parameter (default false = eager init
in the constructor). The flag is stored via a private EBO base that is empty
when kLazyInit_ is false, so the eager path has zero extra storage and the
branch is resolved at compile time via tag dispatch. jled.h sets kLazyInit_
= true only for ARDUINO_ARCH_STM32.
Pull Request #184: Initialize lazily only on stm32

187 of 202 branches covered (92.57%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 1 file covered. (100.0%)

618 of 630 relevant lines covered (98.1%)

746.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30825557135.1 03 Aug 2026 03:03PM UTC 11
96.75
GitHub Action Run
Source Files on build 30825557135
  • Tree
  • List 11
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30825557135
  • Pull Request #184
  • PR Base - master (#30824337835)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc