Skip to content

Commit

Permalink
feat: use the new FileSerde.readAll() method that improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Aug 13, 2024
1 parent 2b861aa commit 7696eea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ protected FileTransform.Output run(RunContext runContext, String engineName) thr
OutputStream output = new FileOutputStream(tempFile);
) {
if (from.startsWith("kestra://")) {
try (BufferedReader inputStream = new BufferedReader(new InputStreamReader(runContext.storage().getFile(URI.create(from))))) {
try (BufferedReader inputStream = new BufferedReader(new InputStreamReader(runContext.storage().getFile(URI.create(from))), FileSerde.BUFFER_SIZE)) {
this.finalize(
runContext,
Flux.create(FileSerde.reader(inputStream), FluxSink.OverflowStrategy.BUFFER),
FileSerde.readAll(inputStream),
scripts,
output
);
Expand Down

0 comments on commit 7696eea

Please sign in to comment.