1
0
Fork 0
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:
Paul Schaub 2022-06-21 19:48:49 +02:00
parent 8d1794544a
commit e5ba4f9933
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -82,6 +82,9 @@ public final class EncryptionStream extends OutputStream {
return; return;
} }
// ArmoredOutputStream better be buffered
outermostStream = new BufferedOutputStream(outermostStream);
LOGGER.debug("Wrap encryption output in ASCII armor"); LOGGER.debug("Wrap encryption output in ASCII armor");
armorOutputStream = ArmoredOutputStreamFactory.get(outermostStream); armorOutputStream = ArmoredOutputStreamFactory.get(outermostStream);
if (options.hasComment()) { if (options.hasComment()) {