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

Relational fields are now lazily constructed via properties instead of in the constructor #187

Merged
merged 2 commits into from
Sep 11, 2019

Conversation

grigi
Copy link
Member

@grigi grigi commented Sep 10, 2019

This results in a significant overhead reduction for Model instantiation with many relationships.

Benchmarks place the overhead reduction from an average of 29% to an average of 5% overhead.
or
15~140% speedup for all tests part of Test 2 (Small Relational model)

…f in the constructor

This results in a significant overhead reduction for Model instantiation with many relationships.

Benchmarks place the overhead reduction from an average of 29% to an average of 5% overhead.
@grigi grigi requested a review from abondar September 10, 2019 19:44
@coveralls
Copy link

coveralls commented Sep 10, 2019

Pull Request Test Coverage Report for Build 739

  • 22 of 22 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.008%) to 97.519%

Totals Coverage Status
Change from base Build 735: 0.008%
Covered Lines: 2844
Relevant Lines: 2886

💛 - Coveralls

@grigi grigi merged commit fff091a into master Sep 11, 2019
@grigi grigi deleted the lazy_rel_fields branch September 24, 2019 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants