summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-06-02 08:42:24 -0300
committerdrebs <drebs@leap.se>2015-06-03 16:07:50 -0300
commit289fab7dbeace040cdd6752026870e4d72e8265f (patch)
tree3660f37be16727164e68a86d19f20c581f87ed82
parent36d3fe05282bbc586c52536962cebf636a9b499f (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.
-rw-r--r--client/src/leap/soledad/client/encdecpool.py2
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):
"""