forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Milestone
Description
CircuitPython version and board name
Adafruit CircuitPython 10.0.3 on 2025-12-03; Raspberry Pi Pico W with rp2040Code/REPL
see belowBehavior
Runtime of programs is three times longer on CP10 than on CP9
Description
When switching my data collection program to CP10 I noticed it runs much slower:
CP9:
[2025-12-02 09:37:40] start: _create_view
[2025-12-02 09:37:49] end: _create_view
[2025-12-02 09:37:55] 0.161 (collect data)
[2025-12-02 09:37:55] 2.585 (dump_data)
[2025-12-02 09:37:55] 0.097 (save_data)
[2025-12-02 09:37:55] 15.127 (update_display)
[2025-12-02 09:37:55] 17.970 (total)
CP10:
[2025-12-02 09:34:31] start: _create_view
[2025-12-02 09:35:27] end: _create_view
[2025-12-02 09:35:32] 0.453 (collect data)
[2025-12-02 09:35:32] 3.047 (dump_data)
[2025-12-02 09:35:32] 0.370 (save_data)
[2025-12-02 09:35:32] 61.665 (update_display)
[2025-12-02 09:35:32] 65.535 (total)
Notice especially the _create_view-method: this only creates the root-group, i.e. no interaction with the physical display and the elapsed time is up from 9s to 56s. Same identical code, same libraries.
I tracked the problem down to the new mechanism that exposes SDs mounted from within CP. If I compile the main-branch with -DCIRCUITPY_SDCARD_USB=0 timings are back to normal. So I assume that some background task is keeping the system busy.
Additional information
No response