Back to articles
SmarterCSV 1.16 Released — Faster Than CSV.read, Bad Row Quarantine, Instrumentation, New Features, Improved API

SmarterCSV 1.16 Released — Faster Than CSV.read, Bad Row Quarantine, Instrumentation, New Features, Improved API

via Dev.toTilo Sloboda

Coffee time ☕ — this one's a long read. But if you've ever had silent data import bugs ruin your day, it's worth it. New to SmarterCSV? Start here first: 10 Ways Ruby's CSV.read Can Silently Corrupt or Lose Your Data Switch from Ruby CSV to SmarterCSV in 5 Minutes SmarterCSV 1.16 is out — it brings major performance gains, new bad-row quarantine system, instrumentation hooks, significantly expanded API, new features. gem 'smarter_csv' , '~> 1.16' Performance: 1.8×–8.6× Faster Than CSV.read The headline number that usually surprises people: SmarterCSV 1.16 returns fully processed symbol-keyed hashes with numeric conversion — and still beats CSV.read (which returns raw string arrays with no post-processing at all): Comparison Speedup vs CSV.read (raw arrays) 1.8×–8.6× faster vs CSV.table (symbol keys + numeric conversion)¹ 7×–129× faster vs SmarterCSV 1.15.2 up to 2.4× faster vs SmarterCSV 1.14.4 9×–65× faster Measured on 19 benchmark files, Apple M1 Pro, Ruby 3.4.7. The 129× figure is o

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles