Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip cached_property in Module._update_methods #1377

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

sveneberth
Copy link
Member

@sveneberth sveneberth commented Jan 22, 2025

This speeds up the boot, since the cached_property isn't calculated during the boot, but lazily when it's needed.

And if you return a callable exposed via the cached_property you are just crazy 🙈

This speed the boot since the `cached_property` will not be calculated
during boot, but lazy when it's needed

And if you return a callable exposed via the cached_property you are
crazy
@sveneberth sveneberth added bug(fix) Something isn't working or address a specific issue or vulnerability Priority: Medium This issue may be useful, and needs some attention. performance This issue or pull request enhances or criticizes the performance. labels Jan 22, 2025
@sveneberth sveneberth marked this pull request as ready for review January 22, 2025 22:47
@sveneberth sveneberth changed the title fix: skip Module.cached_property in _update_methods fix: skip Module.cached_property in _update_methods Jan 22, 2025
@sveneberth sveneberth changed the title fix: skip Module.cached_property in _update_methods fix: skip cached_property in Module._update_methods Jan 22, 2025
@phorward phorward merged commit e81f030 into viur-framework:3.6 Jan 23, 2025
4 checks passed
@sveneberth sveneberth deleted the fix/skip_cached_property branch January 24, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug(fix) Something isn't working or address a specific issue or vulnerability performance This issue or pull request enhances or criticizes the performance. Priority: Medium This issue may be useful, and needs some attention.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants