← Back to issue list

perf: lazy-load extension framework modules

View original Github issue

Metadata

Project
rockcraft
Number
#1208
Type
pull request
State
open
Author
lczyk
Labels
Created
2026-05-14 10:57:04+00:00
Updated
2026-05-14 10:57:05+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

just an idea. the extensions package eagerly imported all six framework modules at import time. for most `rockcraft ...` calls its not needed. i've changed the extensions to be lazy loaded (ahead of https://peps.python.org/pep-0810/ landing in 3.15) --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [x] I've successfully run `make lint && make test`. - [x] I've added or updated any relevant documentation. - [x] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing. - [ ] I've updated the relevant release notes.

Evaluation history

No evaluation history available.