Skip to content

fix(performance): move array_merge outside of loop#55915

Open
miaulalala wants to merge 3 commits intomasterfrom
fix/noid/array-merge-in-loop
Open

fix(performance): move array_merge outside of loop#55915
miaulalala wants to merge 3 commits intomasterfrom
fix/noid/array-merge-in-loop

Conversation

@miaulalala
Copy link
Contributor

@miaulalala miaulalala commented Oct 22, 2025

  • Resolves: #
    Also some general cleanup and a try at caching if it is deemed useful.

TODO

  • ...

Checklist

@miaulalala miaulalala self-assigned this Oct 22, 2025
@miaulalala miaulalala added the 3. to review Waiting for reviews label Oct 22, 2025
@miaulalala miaulalala requested a review from a team as a code owner October 22, 2025 16:44
@miaulalala miaulalala requested review from Altahrim, salmart-dev and sorbaugh and removed request for a team October 22, 2025 16:44
@miaulalala miaulalala force-pushed the fix/noid/array-merge-in-loop branch from 3f95848 to d13c31a Compare October 28, 2025 15:44
@miaulalala
Copy link
Contributor Author

The caching is an experiment. I think it would make sense to cache the user data (and possibly also the groups) as long as there is no editing being done. An event listener could cache bust for any user related events. For large instances, caching the details may be useful.

Wdyt @Altahrim @skjnldsv ?

@miaulalala miaulalala added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Oct 28, 2025
@skjnldsv
Copy link
Member

Always up for more caching sure!
Not sure if you want more definitive one or just at the runtime level.

imho account data could easily be stored in redis as a middle and pulled from the db if not cached ?

@miaulalala
Copy link
Contributor Author

imho account data could easily be stored in redis as a middle and pulled from the db if not cached ?

absolutely. Reasonable cache TTL plus busting on user events and we should have a working solution. I'll continue with my experimentation then 😉

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants