diff options
author | drebs <drebs@leap.se> | 2015-06-02 08:42:24 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2015-06-03 16:07:50 -0300 |
commit | 289fab7dbeace040cdd6752026870e4d72e8265f (patch) | |
tree | 3660f37be16727164e68a86d19f20c581f87ed82 /client/src/leap/soledad/client | |
parent | 36d3fe05282bbc586c52536962cebf636a9b499f (diff) |
[feature] increase the async encryption period
When async decrypting, we want to finish as fast as possible. When encrypting,
though, we don't have such a rush. With an encryption loop period of 2
seconds, we're able to encrypt 30 documents in one minute (the current bitmask
client sync period), which is meaningful: should moderatelly use the processor
while not syncing and relief from some work when actually syncing.
Diffstat (limited to 'client/src/leap/soledad/client')
-rw-r--r-- | client/src/leap/soledad/client/encdecpool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index 94a0552f..c2e2eda8 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -146,7 +146,7 @@ class SyncEncrypterPool(SyncEncryptDecryptPool): TABLE_NAME = "docs_tosync" FIELD_NAMES = "doc_id PRIMARY KEY, rev, content" - ENCRYPT_LOOP_PERIOD = 0.5 + ENCRYPT_LOOP_PERIOD = 2 def __init__(self, *args, **kwargs): """ |