qedus / osmpbf

OpenStreetMap PBF file format parser in Go Lang.
MIT License
142 stars 30 forks source link

Optionally use github.com/klauspost/compress #13

Closed AlekSi closed 9 years ago

AlekSi commented 9 years ago

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

jongillham commented 9 years ago

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.

AlekSi commented 9 years ago

Yeah, you are right, I was overexcited.

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