Skip to content

Conversation

@CarlSchwan
Copy link
Member

@CarlSchwan CarlSchwan commented Jan 13, 2026

Summary

Fetch it once outside instead and pass it to the callback.

According to blackfire this is called a very large number of times:

image

Checklist

Fetch it once outside instead and pass it to the callback.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan added this to the Nextcloud 33 milestone Jan 13, 2026
@CarlSchwan CarlSchwan self-assigned this Jan 13, 2026
@CarlSchwan CarlSchwan requested a review from a team as a code owner January 13, 2026 11:01
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Jan 13, 2026
@CarlSchwan CarlSchwan requested review from ArtificialOwl, leftybournes, sorbaugh and yemkareems and removed request for a team January 13, 2026 11:01
@CarlSchwan CarlSchwan merged commit 5acb93a into master Jan 13, 2026
216 of 224 checks passed
@CarlSchwan CarlSchwan deleted the carl/callback-optimization branch January 13, 2026 14:01
@CarlSchwan
Copy link
Member Author

/backport to stable32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants