Skip to content

[stable-34.0] perf(activity): cache singleton pointers and avoid string concat in hot path - #10358

Merged
nilsding merged 1 commit into
stable-34.0from
backport/9997/stable-34.0
Jul 13, 2026
Merged

[stable-34.0] perf(activity): cache singleton pointers and avoid string concat in hot path#10358
nilsding merged 1 commit into
stable-34.0from
backport/9997/stable-34.0

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 13, 2026

Copy link
Copy Markdown

Backport of PR #9997

@backportbot
backportbot Bot requested review from camilasan and i2h3 as code owners July 13, 2026 10:03
@backportbot
backportbot Bot requested a review from mgallien July 13, 2026 10:03
@backportbot
backportbot Bot requested review from mgallien and nilsding as code owners July 13, 2026 10:03
@backportbot backportbot Bot added this to the 34.0.0 milestone Jul 13, 2026
@nilsding
nilsding enabled auto-merge July 13, 2026 10:09
…in hot path

- FolderMan::instance(): make it an inline accessor returning the static
  pointer, removing the out-of-line call overhead at every use site
  without adding any local caching or extra complexity.
- ActivityListModel::convertLinkToActionButton: move the reply icon URL
  construction inside the isReplyIconApplicable branch and bake the
  trailing slash into the string literal so the path is a single
  immutable QString instead of two QString::operator+ allocations.

Signed-off-by: Qoole <[email protected]>
@nilsding
nilsding force-pushed the backport/9997/stable-34.0 branch from d49ab93 to e96a98f Compare July 13, 2026 11:31
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10358.zip

Digest: sha256:4bf85dd031be911e161837376ffa13d6cac63923065c1c988213e75a7ee17a18

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@nilsding
nilsding merged commit 4833848 into stable-34.0 Jul 13, 2026
19 checks passed
@nilsding
nilsding deleted the backport/9997/stable-34.0 branch July 13, 2026 12:20
@sonarqubecloud

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants