aboutsummaryrefslogtreecommitdiff
path: root/signature_db.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-18 00:00:07 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-18 00:00:07 -0400
commitf02cb7bf4978ec0fa1eea4ed0b21460b7637d741 (patch)
tree91d28f7ca46c6fe7cfd41efd63fa2e2fc2b59221 /signature_db.hpp
parent04f509fd948c03c8b8732ddb6787eea800bdc7f6 (diff)
downloaddeduper-f02cb7bf4978ec0fa1eea4ed0b21460b7637d741.tar.xz
Add batching for get_signature().
Diffstat (limited to 'signature_db.hpp')
-rw-r--r--signature_db.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/signature_db.hpp b/signature_db.hpp
index a56ae1f..b37cf0a 100644
--- a/signature_db.hpp
+++ b/signature_db.hpp
@@ -52,8 +52,10 @@ public:
//if specificted, id must be unique
//treat automatically assigned id as arbitrary opaque integers
size_t put_signature(const fs::path &path, const signature &sig, size_t id = ~size_t(0));
+ void batch_get_signature_begin();
//get image signature from database
std::pair<fs::path, signature> get_signature(size_t id);
+ void batch_get_signature_end();
//place batch_put_subslice_begin() and batch_put_subslice_end() around a group of
//put_subslice() calls to improve performance