Project

crc-turbo

0.0
No release in over 3 years
Low commit activity in last 3 years
C written accelerator for "crc" gem library. Just install this, and to do ``require "crc"`` only. Additional other work is not required.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 0.4.A
 Project Readme

crc-turbo - C written accelerator for ruby CRC calcurator

C written accelerator for "crc" gem library.

Just install this, and to do require "crc" only.

Additional other work is not required.

How to usage

First, install on your system.

# gem install crc-turbo

And, to do require "crc".

$ ruby -r crc -e 'puts $".grep(/crc/)'
/usr/local/lib/ruby/gems/2.3/gems/crc-turbo-0.2/lib/crc/2.3/_turbo.so
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc/_modules.rb
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc/_combine.rb
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc.rb
$

If you want to not use crc-turbo, set RUBY_CRC_NOFAST enviroment variable.

$ export RUBY_CRC_NOFAST=1
$ ruby -r crc -e 'puts $".grep(/crc/)'
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc/_byruby.rb
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc/_modules.rb
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc/_combine.rb
/usr/local/lib/ruby/gems/2.3/gems/crc-0.2/lib/crc.rb
$

Specification