aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-09-24 14:47:10 +0000
committerWerner Koch <[email protected]>2020-09-24 14:47:10 +0000
commitd49a945b12d98fadd0d37f4e50b5e02799e16305 (patch)
tree5de4a3fd09782e9f8769d1ab18890ea15cfff30c /g10/options.h
parentkeyboxd: New command TRANSACTION. (diff)
downloadgnupg-d49a945b12d98fadd0d37f4e50b5e02799e16305.tar.gz
gnupg-d49a945b12d98fadd0d37f4e50b5e02799e16305.zip
gpg: New experimental import option "bulk-import"
* g10/options.h (IMPORT_BULK): New. * g10/import.c (parse_import_options): Add "bulk-import". * g10/call-keyboxd.c (in_transaction): New var. (gpg_keyboxd_deinit_session_data): Run a commit if in bulk import mode. (create_new_context): Run a begin transaction if in bulk import mode. -- Initial tests with this option are not very promising. Importing about 3000 real world keys with --use-keyboxd and full logging took: real 33m31.724s user 19m54.265s sys 2m49.662s With bulk-import this saves a mere 12%: real 29m36.542s user 19m3.391s sys 2m46.728s Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index b2bd543e6..dfa94d4e2 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -371,6 +371,7 @@ EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode;
#define IMPORT_SELF_SIGS_ONLY (1<<14)
#define IMPORT_COLLAPSE_UIDS (1<<15)
#define IMPORT_COLLAPSE_SUBKEYS (1<<16)
+#define IMPORT_BULK (1<<17)
#define EXPORT_LOCAL_SIGS (1<<0)
#define EXPORT_ATTRIBUTES (1<<1)