mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
Add buffer to improve encryption performance
This commit is contained in:
parent
8d1794544a
commit
e5ba4f9933
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ public final class EncryptionStream extends OutputStream {
|
|||
return;
|
||||
}
|
||||
|
||||
// ArmoredOutputStream better be buffered
|
||||
outermostStream = new BufferedOutputStream(outermostStream);
|
||||
|
||||
LOGGER.debug("Wrap encryption output in ASCII armor");
|
||||
armorOutputStream = ArmoredOutputStreamFactory.get(outermostStream);
|
||||
if (options.hasComment()) {
|
||||
|
|
Loading…
Reference in a new issue