viirya commented on issue #24521: [SPARK-27629][PySpark] Prevent Unpickler from intervening each unpickling URL: https://github.com/apache/spark/pull/24521#issuecomment-490403972 I ran a pretty simple job and measure time before and after this PR in 5 runs: ```python >>> import time >>> start = time.time() >>> df = spark.createDataFrame([[1, 2, 3, 4]] * 100000, "array<integer>") >>> collected = df.collect() >>> end = time.time() >>> print(end - start) ``` Before: 0.6398153305053711 0.6232590675354004 0.603309154510498 0.5923750400543213 0.5802857875823975 After: 0.6308741569519043 0.6202919483184814 0.5926861763000488 0.603518009185791 0.5818917751312256
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
