From 4ccafa92b2c0441c7afcafebdc553aaed97c4732 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Tue, 26 Nov 2024 14:09:33 -0800 Subject: [PATCH] Speed improvement - Avoid unnecessary copy of a part of an ArrayList Speed improvement - Avoid unnecessary copy of a part of an ArrayList --- .../dataloader/action/visitor/bulk/BulkLoadVisitor.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/salesforce/dataloader/action/visitor/bulk/BulkLoadVisitor.java b/src/main/java/com/salesforce/dataloader/action/visitor/bulk/BulkLoadVisitor.java index 348a3479..fac912ba 100644 --- a/src/main/java/com/salesforce/dataloader/action/visitor/bulk/BulkLoadVisitor.java +++ b/src/main/java/com/salesforce/dataloader/action/visitor/bulk/BulkLoadVisitor.java @@ -492,10 +492,7 @@ private void processResults(final DataReader dataReader, final BatchInfo batch, final int totalRowsInDAOInCurrentBatch = lastDAORowForCurrentBatch - this.firstDAORowForCurrentBatch + 1; List rows; if (controller.getAppConfig().getBoolean(AppConfig.PROP_PROCESS_BULK_CACHE_DATA_FROM_DAO)) { - rows = new ArrayList(); - for (int i=0; i