Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 09DA6200D2D for ; Fri, 27 Oct 2017 12:07:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0888F160BDC; Fri, 27 Oct 2017 10:07:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 445561609E9 for ; Fri, 27 Oct 2017 12:07:37 +0200 (CEST) Received: (qmail 36189 invoked by uid 500); 27 Oct 2017 10:07:36 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 36178 invoked by uid 99); 27 Oct 2017 10:07:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2017 10:07:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1DF09DFBAA; Fri, 27 Oct 2017 10:07:36 +0000 (UTC) From: srowen To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request #19586: [SPARK-22367][CORE] Separate the serialization of... Content-Type: text/plain Message-Id: <20171027100736.1DF09DFBAA@git1-us-west.apache.org> Date: Fri, 27 Oct 2017 10:07:36 +0000 (UTC) archived-at: Fri, 27 Oct 2017 10:07:38 -0000 Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/19586#discussion_r147371549 --- Diff: core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala --- @@ -205,11 +205,45 @@ class KryoSerializationStream( private[this] var kryo: Kryo = serInstance.borrowKryo() + // This is only used when we write object and class separately. + var classWrote = false --- End diff -- Why not write that state as an iterator of stuff, if that's how it behaves? rather than duplicate code. 'values' is already an iterator there. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org