FasterCSV

Replacement to the Ruby standard CSV library
Download

FasterCSV Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • James Gray
  • Publisher web site:
  • http://highline.rubyforge.org/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 128 KB

FasterCSV Tags


FasterCSV Description

Replacement to the Ruby standard CSV library FasterCSV is intended as a replacement to Ruby's standard CSV library. FasterCSV is significantly smaller and faster while still being pure Ruby code, and also strives for a better interface.FasterCSV was designed to address concerns users of that library had and it has three primary goals:· Be significantly faster than CSV while remaining a pure Ruby library.· Use a smaller and easier to maintain code base. (FasterCSV is larger now, but considerably richer in features. The parsing core remains quite small.)· Improve on the CSV interface.NOTE: FasterCSV is double licensed and provided under the GNU General Public License (GPL) version 2 and the Ruby License. Here are some key features of "FasterCSV": · FasterCSV has a stricter parser and will throw MalformedCSVErrors on problematic data. · FasterCSV has a less liberal idea of a line ending than CSV. What you set as the :row_sep is law. · CSV returns empty lines as . FasterCSV calls them []. · FasterCSV has a much faster parser. · FasterCSV uses Hash-style parameters to set options. · FasterCSV does not have generate_row() or parse_row() from CSV. · FasterCSV does not have CSV's Reader and Writer classes. · FasterCSV::open() is more like Ruby's open() than CSV::open(). · FasterCSV objects support most standard IO methods. · FasterCSV has a new() method used to wrap objects like String and IO for reading and writing. · FasterCSV::generate() is different from CSV::generate(). · FasterCSV does not support partial reads. It works line-by-line. · FasterCSV does not allow the instance methods to override the separators for performance reasons. They must be set in the constructor. What's New in This Release: · The main parser has been rewritten by Timothy Elliott to avoid big input · issues with Ruby 1.8's regex engine. This makes FasterCSV handle more inputs · gracefully. · FasterCSV will now exit with a notice to upgrade if required in Ruby 1.9. · Included a missing file so the tests will run in source packages.


FasterCSV Related Software