Skip to content

feat: make PageLayout.elements a cached property #414

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

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

badGarnet
Copy link
Collaborator

  • default PageLayout.get_elements_with_detection_model now returns LayoutElements
  • PageLayout.elements is a cached property computed from elements_array property to save memory and cpu costs

- default `PageLayout.get_elements_with_detection_model` now returns
  `LayoutElements`
- `PageLayout.elements` is a cached property computed from
  `elements_array` property to save memory and cpu costs
Copy link
Contributor

@christinestraub christinestraub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@badGarnet badGarnet merged commit d41730d into main Mar 5, 2025
14 checks passed
@badGarnet badGarnet deleted the feat/default-to-array-only-output-for-page-layout branch March 5, 2025 21:10
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