mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
fix export performance problems
This commit is contained in:
parent
40850b933b
commit
e58ba0f4bb
@ -46,6 +46,7 @@ import org.sufficientlysecure.keychain.util.FileHelper;
|
|||||||
import org.sufficientlysecure.keychain.util.Log;
|
import org.sufficientlysecure.keychain.util.Log;
|
||||||
import org.sufficientlysecure.keychain.util.ProgressScaler;
|
import org.sufficientlysecure.keychain.util.ProgressScaler;
|
||||||
|
|
||||||
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
@ -289,6 +290,10 @@ public class ImportExportOperation extends BaseOperation {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ( ! BufferedOutputStream.class.isInstance(outStream)) {
|
||||||
|
outStream = new BufferedOutputStream(outStream);
|
||||||
|
}
|
||||||
|
|
||||||
int okSecret = 0, okPublic = 0, progress = 0;
|
int okSecret = 0, okPublic = 0, progress = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user