Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Marshal the keys as strings.

Fewer objects == tighter.
  • Loading branch information...
commit e7e7876a7d5f5bff4ba2fbcadd0369ef8484b6b5 1 parent ea7bb70
@dustin authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.