Skip to content

perf: Replace getById call with getFistNodeByid#1743

Open
CarlSchwan wants to merge 2 commits intomainfrom
carl/perf-getbyid
Open

perf: Replace getById call with getFistNodeByid#1743
CarlSchwan wants to merge 2 commits intomainfrom
carl/perf-getbyid

Conversation

@CarlSchwan
Copy link
Copy Markdown
Member

We only need the first node anyway and getFirstNodeById is quite a bit faster in many cases.

Copy link
Copy Markdown

@artonge artonge left a comment

Choose a reason for hiding this comment

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

Is it also an issue on user folders?

In any case, it simplifies the code, so let's go!

@CarlSchwan
Copy link
Copy Markdown
Member Author

getFirstNodeById is not available with NC28 :/ I wonder why this app still support 28, it's EOL since a while

@enjeck
Copy link
Copy Markdown
Contributor

enjeck commented Apr 20, 2026

getFirstNodeById is not available with NC28 :/ I wonder why this app still support 28, it's EOL since a while

i don't mind updating for the next release

We only need the first node anyway and getFirstNodeById is quite a bit
faster in many cases.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@enjeck enjeck force-pushed the carl/perf-getbyid branch from a65e280 to f78ba12 Compare April 21, 2026 04:32
@enjeck enjeck requested a review from silverkszlo as a code owner April 21, 2026 04:32
@enjeck enjeck force-pushed the carl/perf-getbyid branch from f30b518 to 9072121 Compare April 21, 2026 04:43
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
@enjeck enjeck force-pushed the carl/perf-getbyid branch from 9072121 to 129078c Compare April 21, 2026 04:44
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.

3 participants