bloomen / vca

A prototype for file indexing and discovery
MIT License
0 stars 0 forks source link

Only re-index a file if file fingerprint changed #65

Open bloomen opened 2 years ago

bloomen commented 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).

bloomen commented 2 years ago

See: https://en.cppreference.com/w/cpp/filesystem/last_write_time

bloomen commented 2 years ago

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.