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

A couple of attribute form optimizations #4587

Merged
merged 2 commits into from
Sep 19, 2023
Merged

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Sep 19, 2023

The main optimization here is to only append an attribute form container item when its children have been added. I'm hoping it will avoid a bunch of needless flow {} item layout calculation.

…een added, hopefully will avoid a bunch of needless layout calculation
@qfield-fairy
Copy link
Collaborator

Copy link
Collaborator

@suricactus suricactus left a comment

Choose a reason for hiding this comment

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

The description makes sense, I get the general idea. The code looks good, but did not review in big detail, neither did a benchmark on the perfomance gains.

@nirvn nirvn merged commit f0b54ef into master Sep 19, 2023
19 checks passed
@nirvn nirvn deleted the attributeform_optimization branch September 19, 2023 13:22
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