use a hash for large Structs arefs to avoid O(n) lookups
commitd4b011d14f4719015a04fa3d9227b3e4017070f8
authorErik S. Chang <erik.s.chang@gmail.com>
Tue, 20 Apr 2010 23:20:37 +0000 (20 23:20 +0000)
committerErik S. Chang <erik.s.chang@gmail.com>
Tue, 20 Apr 2010 23:20:37 +0000 (20 23:20 +0000)
treead75af0338a6505cd13fe26599c3061b6c968a00
parent88a2e710b676b9d44ac18e8e2f1aab6d9011fc3c
use a hash for large Structs arefs to avoid O(n) lookups

This speeds up access to large structs

git-svn-id: https://lwes.svn.sourceforge.net/svnroot/lwes/lwes-ruby/trunk@463 a2f82657-cdd2-4550-bd36-68a8e7111808
lib/lwes/struct.rb