Better HN
topnewbestaskshowjobs
Log inSign up

mwlon

16 karma · joined Jun 23, 2021 (5y ago) · 12 submissions

Submissions

1.

Dtype_dispatch: a macro that defines macros that define enums and match them(graphallthethings.com ↗)

17 points · by mwlon · 2y ago · 3 comments

2.

Zero-Copy Reads in Rust(graphallthethings.com ↗)

3 points · by mwlon · 2y ago · discuss

comment 2y ago · link · parent

Numerical data is full of rich patterns, but the general-purpose compressors we've historically used on them (e.g. snappy, gzip, zstd) are designed for unstructured, string-like data. Pcodec (or pco) is a new approach for numerical sequences that gets better compression ratio and decompression speed than alternatives. It usually improves compression ratio substantially, given the same compression time. Plus it's built to perform on all common CPU architectures, decompressing around 1-4GB/s.

You might have seen me post about Quantile Compression in previous years. Pco is its successor! Pco gets slightly better compression ratio, robustly handles more types of data, and (most importantly) decompresses much faster.

If you're interested in using it, there's a Rust API, Python (PyO3) API, and a CLI.

4.

The Parquet We Could Have(graphallthethings.com ↗)

2 points · by mwlon · 2y ago · discuss

5.

Reducing Parquet 71% with Quantile Compression(graphallthethings.com ↗)

2 points · by mwlon · 4y ago · discuss

comment 4y ago · link · parent

PancakeDB is an event ingestion solution, an important part of most tech companies' data stacks. Write to it one event at a time, and process billions at a time with the Spark connector or other tools.

I've released it under BSL so that any company can run it on their own servers for free.

7.

PancakeDB Is Now Free(pancakedb.com ↗)

2 points · by mwlon · 4y ago · 1 comment

comment 5y ago · link · parent

It is a new startup I'm building.

It's a new type of database that can take in streaming data with very fast (~10ms) response times and output batch data with very fast throughput. To do that, it uses a new columnar file format and compression algorithm. Together, this makes its columnar files 30-50% smaller under most circumstances while decoding just as quickly. That means storage costs are lower and it's 30+% faster assuming the same network bandwidth is used to transfer the data for all columns. And this is a pessimistic scenario, since most queries have a `select column_0, column_1, ...` clause that PancakeDB can leverage better than Parquet, transferring only the exact columns needed!

You can find edge cases (e.g. very long strings of uniformly random bytes) where it's only a few % faster instead of 30%, but in every real-world-resembling scenario I've tried, the advantage is much greater.

9.

PancakeDB offers columnar reads 30% faster than Parquet(pancakedb.com ↗)

20 points · by mwlon · 5y ago · 3 comments

comment 5y ago · link · parent

I made this open source compression algorithm as part of a database I'm creating. It typically compresses columns of numerical data to ~25% smaller than alternatives (think .snappy.parquet or .gzip.parquet) at similar or cheaper compute cost. It decompresses 15-100 million 64-bit numbers per second on a single i5 CPU per second.

I also made a blog post that introduces the idea more from the math perspective: https://graphallthethings.com/posts/quantile-compression

11.

New, better compression for columns of numerical data(github.com ↗)

4 points · by mwlon · 5y ago · 1 comment