todb/packetfu — pull request #10 by justfalter (2012-07-14 17:55:27+00:00)
Title: Octets perf refactor

With this changeset, I've refactored PacketFu::Octets to use a single Int32 rather than four Int8's.

Octets#read: 2.3x faster
Octets#read_quad: ~7x faster
Octets#to_x: ~7x faster
Octets#to_i: 41x faster
Octets#to_s: 3.75x faster