зеркало из https://github.com/microsoft/spark.git
Fixed a performance bug in BlockManager that was creating garbage when
returning deserialized, in-memory RDDs.
This commit is contained in:
Родитель
8feb5caacd
Коммит
a642051ade
|
@ -131,7 +131,7 @@ class MemoryStore(blockManager: BlockManager, maxMemory: Long)
|
|||
return None
|
||||
}
|
||||
if (entry.deserialized) {
|
||||
return Some(entry.value.asInstanceOf[ArrayBuffer[Any]].toIterator)
|
||||
return Some(entry.value.asInstanceOf[ArrayBuffer[Any]].iterator)
|
||||
} else {
|
||||
return Some(dataDeserialize(entry.value.asInstanceOf[ByteBuffer].duplicate()))
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче