qedus / osmpbf

OpenStreetMap PBF file format parser in Go Lang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optionally use github.com/klauspost/compress

AlekSi opened this issue · comments

https://github.com/klauspost/compress looks impressive.

I propose to create a subpackage (github.com/qedus/osmpbf/faster? :) ) which imports github.com/klauspost/compress and uses a simple dependency injection to use it.

Going to do it myself in few weeks. If someone can't wait – go ahead, do it. :)

As far as I can see github.com/klauspost/compress only works for compressing not decompressing. osmpbf only uses decompression right now. Maybe I am confused as to how you want to use it.

Yeah, you are right, I was overexcited.

Currently there is only minor speedup on decompression (primarily CRC32 calculation).