An open API service indexing awesome lists of open source software.

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

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).