https://github.com/valyala/tsvreader
Fast reader for TSV streams
https://github.com/valyala/tsvreader
fast golang tsv tsv-reader
Last synced: 3 months ago
JSON representation
Fast reader for TSV streams
- Host: GitHub
- URL: https://github.com/valyala/tsvreader
- Owner: valyala
- License: mit
- Created: 2017-10-13T10:29:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-20T17:35:39.000Z (over 6 years ago)
- Last Synced: 2025-03-18T07:01:36.522Z (3 months ago)
- Topics: fast, golang, tsv, tsv-reader
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 64
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tsvreader - fast reader for tab-separated data
## Features
* Optimized for speed. May read more than 20M rows per second on a single
CPU core.
* Compatible with `TSV` (aka `TabSeparated`) format used in [ClickHouse](https://github.com/yandex/ClickHouse) responses.
See [chclient](https://github.com/valyala/chclient) - clickhouse client built on top of `tsvreader`.
* May read rows with variable number of columns using [Reader.HasCols](https://godoc.org/github.com/valyala/tsvreader#Reader.HasCols).
This functionality allows reading [WITH TOTALS](http://clickhouse.readthedocs.io/en/latest/reference_en.html#WITH+TOTALS+modifier)
row from `ClickHouse` responses and [BlockTabSeparated](http://clickhouse.readthedocs.io/en/latest/reference_en.html#BlockTabSeparated)
responses.## Documentation
See [these docs](https://godoc.org/github.com/valyala/tsvreader).