Skip to content

Commit 25d40a1

Browse files
Optimize startup time by removing component discovery (#213)
* Remove discover_components call from app initialization * Remove test_apps.py as it's no longer needed * Update CHANGELOG.md with startup optimization * remove comment
1 parent a5a7995 commit 25d40a1

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
2727
- Added management command `generate_asset_manifest` for pre-computing template-component relationships
2828
- Added automatic fallback to component scanning in development mode (when DEBUG=True)
2929

30+
### Removed
31+
32+
- Removed automatic component scanning at application startup for faster initialization
33+
3034
## [0.16.2]
3135

3236
### Added

src/django_bird/apps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class DjangoBirdAppConfig(AppConfig):
1515

1616
@override
1717
def ready(self):
18-
from django_bird.components import components
1918
from django_bird.conf import app_settings
2019
from django_bird.plugins import pm
2120
from django_bird.staticfiles import asset_types
@@ -25,7 +24,6 @@ def ready(self):
2524

2625
app_settings.autoconfigure()
2726
pm.hook.register_asset_types(register_type=asset_types.register_type)
28-
components.discover_components()
2927

3028
for ready in pm.hook.ready():
3129
ready()

tests/test_apps.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)