Skip to content

Commit 0d54190

Browse files
m
1 parent 915ba28 commit 0d54190

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

TestVectors/dafny/DDBEncryption/src/Index.dfy

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ module WrappedDDBEncryptionMain {
3838

3939
method ASDF()
4040
{
41-
// Create a singleton keyVectors client used in every test.
42-
// Right now, all test vectors use the same keys manifest, located at DEFAULT_KEYS.
43-
// Parsing JSON is expensive in some languages.
44-
//
41+
// KeyVectors client passed to every test.
42+
// All test vectors currently use the same keys manifest, located at DEFAULT_KEYS.
43+
// All test vectors can share this same KeyVectors client.
44+
45+
// To use a different keys manifest, create a new KeyVectors client.
46+
// If you need to create a new KeyVectors client, create it as infrequently as possible.
47+
// Creating this client frequently means JSON is parsed frequently.
48+
// Parsing JSON is very slow in Python. Parse JSON as infrequently as possible.
4549
var keyVectors :- expect KeyVectors.KeyVectors(
4650
KeyVectorsTypes.KeyVectorsConfig(
4751
keyManifestPath := DEFAULT_KEYS

0 commit comments

Comments
 (0)