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

Introducing Combined Query #94

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Introducing Combined Query #94

merged 1 commit into from
Sep 15, 2024

Conversation

ogaclejapan
Copy link
Contributor

To improve the efficiency of Composable functions that define multiple keys in parallel, we have implemented a new feature called Combined Query. This feature optimizes the recomposition process by treating multiple query keys as a single query, but only when a composite type can be defined from these keys.

val query = rememberQuery(key1 = key1, key2 = key2, key3 = key3, transform = { a, b, c -> ... })

By using the CombinedQuery class, the number of recompositions can be significantly reduced to the same level as a single query. This ensures that the performance of Composable functions remains high, even when working with multiple keys simultaneously.

To improve the efficiency of Composable functions that define multiple keys in parallel, we have implemented a
new feature called Combined Query. This feature optimizes the recomposition process by treating multiple query keys as a
single query, but only when a composite type can be defined from these keys.

By using the Combined Query class, the number of recompositions can be significantly reduced to the same level as a
single query. This ensures that the performance of Composable functions remains high, even when working with multiple
keys simultaneously.
@ogaclejapan ogaclejapan added the enhancement New feature or request label Sep 15, 2024
@ogaclejapan ogaclejapan merged commit d027a36 into main Sep 15, 2024
3 checks passed
@ogaclejapan ogaclejapan deleted the combined-query branch September 15, 2024 08:31
@github-actions github-actions bot mentioned this pull request Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant