mirror of
https://github.com/floci-io/floci.git
synced 2026-12-06 03:28:18 -05:00
test(redshift): avoid TCP delays in COPY backend fixture (#8160)
Enable TCP_NODELAY before the fake backend starts protocol I/O, following the existing COPY job fixture socket configuration. Preserve every wire frame, flush point, assertion and deadline. Two alternating focused Maven benchmark pairs reduce mean elapsed from 57.184s to 33.682s. Fresh current-main validation passes all 35 affected cases and Checkstyle; this is not a full-CI speedup claim.
This commit is contained in:
1 parent
355c180db3
commit
83e12f1191
1 file changed
+1
@@ -64,6 +64,7 @@ final class FakeCopyBackend {
|
||||
|
||||
private void serve(OutputStream copied, boolean stopAfterLoad, boolean failCommit,
|
||||
StatementObserver observer) throws Exception {
|
||||
socket.setTcpNoDelay(true);
|
||||
PostgresWireDecoder decoder = new PostgresWireDecoder(socket.getInputStream());
|
||||
OutputStream out = socket.getOutputStream();
|
||||
Map<String, String> statements = new HashMap<>();
|
||||
|
||||
Reference in new issue
Block a user