From f02cb7bf4978ec0fa1eea4ed0b21460b7637d741 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 18 Sep 2022 00:00:07 -0400 Subject: Add batching for get_signature(). --- signature_db.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'signature_db.hpp') 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 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 -- cgit v1.2.3