[
https://issues.apache.org/jira/browse/SPARK-53210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yang Jie resolved SPARK-53210.
------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
Issue resolved by pull request 51935
[https://github.com/apache/spark/pull/51935]
> Use Java `Files.write(String)?` instead of `com.google.common.io.Files.write`
> -----------------------------------------------------------------------------
>
> Key: SPARK-53210
> URL: https://issues.apache.org/jira/browse/SPARK-53210
> Project: Spark
> Issue Type: Sub-task
> Components: DStreams, Spark Core, SQL, Tests, YARN
> Affects Versions: 4.1.0
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> {code}
> scala> val a = new Array[Byte](2_000_000_000)
> scala> spark.time(java.nio.file.Files.write(Path.of("/tmp/a"), a))
> Time taken: 560 ms
> scala> spark.time(com.google.common.io.Files.write(a, new
> java.io.File("/tmp/a")))
> Time taken: 685 ms
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]