You are not logged in.

#1 2025-08-20 18:22:21

gi1242
Member
Registered: 2022-07-07
Posts: 34

Baloo search perfomance vs just using fd

Hi All,

I recently tried out the KDE/Plasma search (Baloo).

1. Indexing full content was too slow (I have some 100GB of data), and I disabled it.

2. Indexing filenames only was reasonably quick.

3. The search was very restrictive (full words only, miscategorized files). To make it usable for me, I had to get a list of all files and dump it to fzf, which worked reasonably well.

4. Using `baloosearch6` to get a long list of files provides almost no noticable performance improvment over `fd`:

        > time ( baloosearch6 mimetype:application/pdf | wc -l )
        0.05s user 0.03s system 111% cpu 0.069 total


        > time ( \fd -H --no-ignore-vcs --xdev -tf -tl '.pdf$' | wc -l )
        0.24s user 0.15s system 364% cpu 0.107 total

    (Both commands found about 11,000 files. I'm using a SSD with about 500mbps read speed).

3. If I try it again with a larger file set :

        > time ( baloosearch6 -d VSync/ '' | wc -l )
        0.23s user 0.10s system 123% cpu 0.264 total

        > time ( \fd -H --no-ignore-vcs --xdev -tf -tl --base-directory=VSync/ | wc -l )
        0.13s user 0.11s system 456% cpu 0.052 total

    This time baloo found 96000 files, and fd found 59000 files. (fd might have run faster cause of disk caching.)

`fd` used more CPU no doubt. But the wall time difference in performance is so small that it doesn't make sense to me to use an indexed search anymore.

Any thoughts?

Offline

#2 2025-08-27 13:49:41

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,210

Re: Baloo search perfomance vs just using fd

I'd expect baloo to outperform fd by miles when using a HDD.

How much slower is using `find -iname '*PATTERN*'`?

Also, if you use baloo without indexing (I know you can disable file indexing somewhere in the KDE settings), how slow is it then?


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#3 2025-08-27 14:13:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,695

Re: Baloo search perfomance vs just using fd

If you're interested in only indexing the filenames, see https://archlinux.org/packages/extra/x86_64/plocate/

Offline

Board footer

Powered by FluxBB