Skip to content

perf(View): don't sort twice the same array#61440

Open
CarlSchwan wants to merge 1 commit into
masterfrom
carl/findIn-mount-point
Open

perf(View): don't sort twice the same array#61440
CarlSchwan wants to merge 1 commit into
masterfrom
carl/findIn-mount-point

Conversation

@CarlSchwan

@CarlSchwan CarlSchwan commented Jun 19, 2026

Copy link
Copy Markdown
Member

The output of findIn is already sorted as it use a binary search to create the array

  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@CarlSchwan CarlSchwan requested a review from a team as a code owner June 19, 2026 10:53
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Jun 19, 2026
@CarlSchwan CarlSchwan requested review from ArtificialOwl, icewind1991, leftybournes and salmart-dev and removed request for a team June 19, 2026 10:53
Improve performance a bit as this is in the hotpath and take ~2s in
prod.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/findIn-mount-point branch from 94f1317 to 22d0ea3 Compare June 19, 2026 11:09
@CarlSchwan CarlSchwan changed the title perf(IMountManager::findIn): Cache a sorted array perf(View): don't sort twice the same array Jun 19, 2026

@Altahrim Altahrim left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should probably add it as a constraint for findIn. As a comment and/or as a test

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.

3 participants