You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "cfmcgrady (via GitHub)" <gi...@apache.org> on 2023/06/15 11:40:42 UTC
[GitHub] [incubator-celeborn] cfmcgrady commented on a diff in pull request #1595: [CELEBORN-683][SPARK][PERF] Avoid calling `CelebornConf.get` multi-time when columnar shuffle wri…
cfmcgrady commented on code in PR #1595:
URL: https://github.com/apache/incubator-celeborn/pull/1595#discussion_r1230882462
##########
client-spark/spark-3/src/main/java/org/apache/spark/shuffle/celeborn/HashBasedShuffleWriter.java:
##########
@@ -216,22 +233,22 @@ private void fastColumnarWrite0(scala.collection.Iterator iterator) throws IOExc
if (rssBatchBuilders[partitionId] == null) {
RssBatchBuilder columnBuilders;
- if (conf.columnarShuffleCodeGenEnabled() && !conf.columnarShuffleDictionaryEnabled()) {
+ if (columnarShuffleCodeGenEnabled && !columnarShuffleDictionaryEnabled) {
columnBuilders =
- new RssColumnarBatchCodeGenBuild().create(schema, conf.columnarShuffleBatchSize());
+ new RssColumnarBatchCodeGenBuild().create(schema, columnarShuffleBatchSize);
} else {
columnBuilders =
new RssColumnarBatchBuilder(
schema,
- conf.columnarShuffleBatchSize(),
- conf.columnarShuffleDictionaryMaxFactor(),
- conf.columnarShuffleDictionaryEnabled());
+ columnarShuffleBatchSize,
+ columnarShuffleDictionaryMaxFactor,
+ columnarShuffleDictionaryEnabled);
}
columnBuilders.newBuilders();
rssBatchBuilders[partitionId] = columnBuilders;
}
rssBatchBuilders[partitionId].writeRow(row);
- if (rssBatchBuilders[partitionId].getRowCnt() >= conf.columnarShuffleBatchSize()) {
+ if (rssBatchBuilders[partitionId].getRowCnt() >= columnarShuffleBatchSize) {
Review Comment:
yeah, here is the primary performance bottleneck before.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org