Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public ArrayList<DataBatch> requireBatches(int requestSize) {
totalSize = 0;
return batches;
}
// TODO: ArrayList.remove(0) in a loop is O(n^2) due to element shifting.
// Investigate subList(0, count).clear() or use LinkedList/ArrayDeque.
ArrayList<DataBatch> retBatches = new ArrayList<>();
int currentSize = 0;
while (currentSize < requestSize) {
Expand Down
2 changes: 2 additions & 0 deletions cpp/celeborn/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ add_library(
writer/PushStrategy.cpp
writer/ReviveManager.cpp
writer/PushDataCallback.cpp
writer/PushMergedDataCallback.cpp
writer/DataBatches.cpp
ShuffleClient.cpp
compress/Decompressor.cpp
compress/Lz4Decompressor.cpp
Expand Down
Loading
Loading