Skip to content
Closed
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 @@ -738,6 +738,15 @@ private void processLineChunk(BoundingBox boundingBox, Long mcid, LineChunk line
lineArtContainer.add(mcid, lineChunk, operatorIndex, xObjectName);
if (StaticStorages.getIsIgnoreMCIDs()) {
boundingBox.union(lineChunk.getBoundingBox());
// The line carries only the operator that painted it. The region's
// full list goes once onto the LineArtChunk that processLineArts
// builds, whose box holds the line, and a consumer that needs the
// whole region finds that chunk through this operator and that box.
// Giving every line the full list cost lines x operators objects: one
// chart of 7,500 strokes made 56 million and ran out of heap.
if (StaticContainers.isDataLoader()) {
lineChunk.getStreamInfos().add(new StreamInfo(operatorIndex, xObjectName, null));
}
}
}

Expand Down Expand Up @@ -1161,11 +1170,8 @@ public void processLineArts() {
List<StreamInfo> pending = lineArtContainer.getStreamInfos(null);
List<LineChunk> lineChunks = lineArtContainer.getLineChunks(null);
if (lineChunks != null && !lineChunks.isEmpty()) {
for (LineChunk lineChunk : lineChunks) {
for (StreamInfo info : pending) {
lineChunk.getStreamInfos().add(new StreamInfo(info));
}
}
// Each line already holds its own operator (processLineChunk). The
// region's list is attached to the boxes below only, once per box.
artifacts.addAll(lineChunks);
lineChunks.clear();
}
Expand Down
Loading