Use unpack instead of String#each_byte in as_hex_ewkb for performance improvement.
Use unpack instead of String#each_byte in as_hex_ewkb for performance improvement.

This patch improves performance approximately 3.5x as tested with an import of 29 shapes to a postgres database.  Patch described more completely in message to GeoRuby-devel:

http://rubyforge.org/pipermail/georuby-devel/2009-March/000057.html

jsl/georuby