Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gwenn/yacr
Yet another CSV Reader
https://github.com/gwenn/yacr
csv encoding go
Last synced: 2 months ago
JSON representation
Yet another CSV Reader
- Host: GitHub
- URL: https://github.com/gwenn/yacr
- Owner: gwenn
- License: bsd-3-clause
- Created: 2011-06-02T16:04:37.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-02-20T18:22:00.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T16:58:42.321Z (3 months ago)
- Topics: csv, encoding, go
- Language: Go
- Homepage:
- Size: 90.8 KB
- Stars: 67
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://github.com/gwenn/yacr/workflows/CI/badge.svg)](https://github.com/gwenn/yacr/actions)
[![GoDoc](https://godoc.org/github.com/gwenn/yacr?status.svg)](https://godoc.org/github.com/gwenn/yacr)
[![Go Report Card](https://goreportcard.com/badge/github.com/gwenn/yacr)](https://goreportcard.com/report/github.com/gwenn/yacr)
[![Coverage Status](https://coveralls.io/repos/github/gwenn/yacr/badge.svg?branch=master)](https://coveralls.io/github/gwenn/yacr?branch=master)Yet another CSV reader (and writer) with small memory usage.
All credit goes to:
* Rob Pike, creator of Scanner interface,
* D. Richard Hipp, for his CSV parser implementation.There is a standard package named [encoding/csv](http://tip.golang.org/pkg/encoding/csv/).
BenchmarkParsing 5000 381518 ns/op 256.87 MB/s 4288 B/op 5 allocs/op
BenchmarkQuotedParsing 5000 487599 ns/op 209.19 MB/s 4288 B/op 5 allocs/op
BenchmarkEmbeddedNL 5000 594618 ns/op 201.81 MB/s 4288 B/op 5 allocs/op
BenchmarkStdParser 500 5026100 ns/op 23.88 MB/s 625499 B/op 16037 allocs/op
BenchmarkYacrParser 5000 593165 ns/op 202.30 MB/s 4288 B/op 5 allocs/op
BenchmarkYacrWriter 200000 9433 ns/op 98.05 MB/s 2755 B/op 0 allocs/op
BenchmarkStdWriter 100000 27804 ns/op 33.27 MB/s 2755 B/op 0 allocs/opUSAGES
------
* [csvdiff](https://github.com/gwenn/csvdiff)
* [csvgrep](https://github.com/gwenn/csvgrep)
* [SQLite import/export/module](https://github.com/gwenn/gosqlite/blob/master/csv.go)