Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit 9c7ea31

Browse files
author
Lars-Magnus Skog
committed
🔥 remove .compression
1 parent 26e2e05 commit 9c7ea31

File tree

4 files changed

+1
-28
lines changed

4 files changed

+1
-28
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ var db = levelup(memdown)
179179

180180
`levelup()` takes an optional options object as its second argument; the following properties are accepted:
181181

182-
* `'compression'` *(boolean, default: `true`)*: If `true`, all *compressible* data will be run through the Snappy compression algorithm before being stored. Snappy is very fast and shouldn't gain much speed by disabling so leave this on unless you have good reason to turn it off.
183-
184182
* `'cacheSize'` *(number, default: `8 * 1024 * 1024`)*: The size (in bytes) of the in-memory [LRU](http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used) cache with frequently used uncompressed block contents.
185183

186184
* `'keyEncoding'` and `'valueEncoding'` *(string, default: `'utf8'`)*: The encoding of the keys and values passed through Node.js' `Buffer` implementation (see [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end)).

lib/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
var defaultOptions = {
88
keyEncoding: 'utf8',
9-
valueEncoding: 'utf8',
10-
compression: true
9+
valueEncoding: 'utf8'
1110
}
1211

1312
function getOptions (options) {

test/benchmarks/engines/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@ module.exports.LevelUP.color = 'green'
99
module.exports['LevelUP (release)'] = require('./levelup-release')
1010
module.exports['LevelUP (release)'].color = 'yellow'
1111

12-
// module.exports['LevelUP (no Snappy)'] = require('./levelup-nosnappy')
13-
// module.exports['LevelUP (no Snappy)'].color = 'magenta'
14-
1512
module.exports.SQLite3 = require('./sqlite3')
1613
module.exports.SQLite3.color = 'blue'

test/benchmarks/engines/levelup-nosnappy.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)