Papa Parse 4 sports a new core parser, completely rewritten from scratch, and is now the fastest CSV parser for the browser. Notable features include:
- 5x to 10x speed boost thanks to a new parsing algorithm
- Fast mode for even faster parsing, as long as the input has no quoted fields
- You can now pause, resume, and abort parsing within the
chunkcallback keepEmptyRowsis replaced withskipEmptyLines. New default behavior is to keep empty lines unless you specify otherwise.- Comments can now start with more than a single character (like "//" instead of just "#")
- Got rid of errors that weren't helpful; now any errors that are generated are always cause for concern
- Bug fixes
See the docs and the blog post for more information.