use constants everywhere to reduce GC thrashing
commit2c913347a6e5cc8be776b14e1a177adec0fbd5b6
authorEric Wong <e@yhbt.net>
Mon, 17 Jan 2011 03:17:28 +0000 (17 03:17 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 17 Jan 2011 09:18:31 +0000 (17 09:18 +0000)
tree8d001fa557ef23c66bc56aa6c2fba943e428382e
parent34a18520286313a05edc9a927ac4bed95b05191c
use constants everywhere to reduce GC thrashing

This makes it easier to notice a typo, too.
12 files changed:
lib/metropolis.rb
lib/metropolis/common.rb
lib/metropolis/common/ro.rb
lib/metropolis/constants.rb [new file with mode: 0644]
lib/metropolis/deflate.rb
lib/metropolis/gzip.rb
lib/metropolis/hash.rb
lib/metropolis/input_wrapper.rb
lib/metropolis/multi_hash/digest.rb
lib/metropolis/suffix_mime.rb
lib/metropolis/tc/hdb.rb
lib/metropolis/tdb.rb