10x faster than Spark on a laptop

(krishiv.ai)

13 points | by techgopal 1 hour ago

4 comments

  • ordx 2 minutes ago
    This completely misses the point of Spark. If your data fits on a laptop you should be using something like DuckDB. Spark shines when you have enormous datasets and want to join and/or apply some sort parallelizable transformation on top.
  • tormeh 23 minutes ago
    I once showed my coworkers Datafusion. Everyone was used to Databricks and so were of course surprised at how fast it was. Spark has a lot of overhead.
    • techgopal 12 minutes ago
      DataFusion is great, and a big part of why the "Spark has a lot of overhead" point is now easy to show. What we're after is slightly different: running the PySpark and Spark SQL people already have, unchanged. Same DataFrame API, Spark's error classes, the same results, so the switch is krishiv.session() instead of a rewrite. Most of that overhead is the JVM and the cluster machinery. On one machine you can drop both.
  • ftchd 21 minutes ago
    I thought this was about the Nvidia Spark initially
    • techgopal 12 minutes ago
      Haha, fair. Too many Sparks this year. This one is the Apache Spark API (PySpark / Spark SQL) running on an engine written in Rust, no JVM.
  • lnxsxu 27 minutes ago
    how much free disk space did the 1 tb run need once the parquet files were on the laptop? i can see myself checking that the data fits and remembering the temp files about ten minutes too late.