Skip to content
Browse files

Marshal the keys as strings.

Fewer objects == tighter.
  • Loading branch information...
1 parent ea7bb70 commit e7e7876a7d5f5bff4ba2fbcadd0369ef8484b6b5 @dustin committed Oct 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/trie.rb
View
2 lib/trie.rb 100644 → 100755
@@ -424,7 +424,7 @@ def values
# the default.
#
def _dump(depth)
- Marshal.dump(inject([]){|a,p| a << p})
+ Marshal.dump(inject([]){|a,p| a << [p.first.join(''), p.last]})
end
def self._load(o)

0 comments on commit e7e7876

Please sign in to comment.
Something went wrong with that request. Please try again.