diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-20 17:44:41 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-22 19:24:30 +0800 |
commit | 4ca3d49307ba85179474d883694ff2b8e685d429 (patch) | |
tree | 1b96f81e415ee3822961443c58a137482985910c /ethdb | |
parent | 98f4c936f25de27dbc90f36f2c1ffd1f23b114e9 (diff) | |
download | go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.tar go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.tar.gz go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.tar.bz2 go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.tar.lz go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.tar.xz go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.tar.zst go-tangerine-4ca3d49307ba85179474d883694ff2b8e685d429.zip |
ethdb, trie: removed RLE compression
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index c75136a1b..c9ce785d9 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -22,7 +22,6 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/compression/rle" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" "github.com/ethereum/go-ethereum/metrics" @@ -81,12 +80,12 @@ func (self *LDBDatabase) Put(key []byte, value []byte) error { defer self.putTimer.UpdateSince(time.Now()) } // Generate the data to write to disk, update the meter and write - dat := rle.Compress(value) + //value = rle.Compress(value) if self.writeMeter != nil { - self.writeMeter.Mark(int64(len(dat))) + self.writeMeter.Mark(int64(len(value))) } - return self.db.Put(key, dat, nil) + return self.db.Put(key, value, nil) } // Get returns the given key if it's present. @@ -107,7 +106,8 @@ func (self *LDBDatabase) Get(key []byte) ([]byte, error) { if self.readMeter != nil { self.readMeter.Mark(int64(len(dat))) } - return rle.Decompress(dat) + return dat, nil + //return rle.Decompress(dat) } // Delete deletes the key from the queue and database |