in reply to Difference between Text::CSV_XS and Text::CSV

The difference is that Text::CSV_XS is written in c so it is much faster than Text::CSV which is a pure-Perl module. If you have a C compiler, I would recommend using the XS version


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
  • Comment on Re: Difference between Text::CSV_XS and Text::CSV

Replies are listed 'Best First'.
Re^2: Difference between Text::CSV_XS and Text::CSV
by Tux (Canon) on Jun 25, 2009 at 07:02 UTC

    As ikegami already mentioned, Text::CSV is just a wrapper over Text::CSV_XS nowadays, but what he did not mention is that Text::CSV bundles Text::CSV_PP which is the pure-perl implementation of Text::CSV_XS.

    Text::CSV_XS is about 50 times faster than the pure-perl version. Text::CSV is the module of choice, which you can speed up, even afterwards, by installing the XS version.

    I maintain the XS version, and communicate with the author of the pure-perl version, so once Text::CSV_XS is updated to a new release, the wrapper modules can follow within days with the matching pure-perl version.


    Enjoy, Have FUN! H.Merijn