Cache the result so it will speed up the process
- Langage dominant
- Python
- Étoiles
- 0
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
There are 2 options and each have their own Pros and Cons:
## 1. Image Hashsum
Each file can be have its Hash SUM upon initializing the class and use that to keep results in a cache table.
it's very reliable and can be trusted forever, however it can be slow since every time the hash sum of the file should be calculated and it can be time consuming for larger files.
## 2. Filename Hashsum
Given the file path name, just compute the hash of the file name (_path_) and use it for caching lookup.
This method has one drawback which doesn't handle file modification, means if the file has been changed or a completely different file has been given with the same path, however that I think can be taken be partially taken care of by calculating the hash of `file length`, `file path`, `file timestamp`
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.