agoragames / tassadar

A Starcraft 2 replay parser written in pure Ruby
https://github.com/agoragames/tassadar
MIT License
44 stars 20 forks source link

Default to rbzip, but use bzip2-ruby if available. #7

Closed guitsaru closed 8 years ago

guitsaru commented 11 years ago

See discussion in #6.

If bzip2-ruby is available, use it because it's faster. Default to rbzip2 for compatibility.

tassadar [bzip2-ruby*] → time rake > /dev/null rake > /dev/null 0.81s user 0.08s system 99% cpu 0.897 total

tassadar [bzip2-ruby*] → time RBZIP2=true rake > /dev/null RBZIP2=true rake > /dev/null 1.34s user 0.08s system 99% cpu 1.436 total

RyanNielson commented 11 years ago

I think this is the best solution we can use while keeping it in the same Gem and not forking.