Open bloomen opened 2 years ago
The file fingerprint could initially just be the modified timestamp.
This should speed up our indexing dramatically when the daemon restarts (e.g. on machine reboot).
See: https://en.cppreference.com/w/cpp/filesystem/last_write_time
Another thing to consider is to recognize when files where moved around or copied. There shouldn't be a need to re-index them. We'll have to compute a "fast hash" of the file.
The file fingerprint could initially just be the modified timestamp.
This should speed up our indexing dramatically when the daemon restarts (e.g. on machine reboot).