Search is slow with ~100,000 files
For example, you want to search for "foobar" in your home directory, but as soon as you type "f", nautilus tries to show the thousands of files containing "f" and hangs for very long time. It gets worse if you search hidden files beginning with ".".
In case you don't have that many files, here's a simple repro: (search for "f")
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
int main()
{
mkdir("testfiles", S_IRWXU | S_IRGRP | S_IROTH);
for (int i = 0; i < 200000; i++) {
char s[128];
sprintf(s, "testfiles/f%d", i);
FILE *f = fopen(s, "w");
if (f) fclose(f);
}
return 0;
}
Edited by Xiang Fan