You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test no longer creates large strings (neither before writing nor after reading).
That is however insufficient to avoid the OOM since the underlying implementation read all the bytes in memory for encryption/decryption.
So I lowered the size of the test data.
NB: I did attempt to implement a memory-efficient kv-store using CipherOutputStream and CipherInputStream (see wmathurin@047def6)
- it was noticeably slower
- it also caused OOMs ! Maybe Android's Conscrypt AES-GCM cipher implementation has internal buffering !! ??
Copy file name to clipboardExpand all lines: libs/test/SmartStoreTest/src/com/salesforce/androidsdk/smartstore/store/KeyValueEncryptedFileStoreTest.java
+92-8Lines changed: 92 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -270,15 +270,25 @@ public void testSaveStreamGetValue() {
270
270
}
271
271
}
272
272
273
+
/**
274
+
* Test saving and getting large streams to verify memory efficiency
0 commit comments