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

Commit

Permalink
🔥 remove .compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Jul 31, 2017
1 parent 26e2e05 commit 9c7ea31
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 28 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ var db = levelup(memdown)

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

* `'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.

* `'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.

* `'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)).
Expand Down
3 changes: 1 addition & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

var defaultOptions = {
keyEncoding: 'utf8',
valueEncoding: 'utf8',
compression: true
valueEncoding: 'utf8'
}

function getOptions (options) {
Expand Down
3 changes: 0 additions & 3 deletions test/benchmarks/engines/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ module.exports.LevelUP.color = 'green'
module.exports['LevelUP (release)'] = require('./levelup-release')
module.exports['LevelUP (release)'].color = 'yellow'

// module.exports['LevelUP (no Snappy)'] = require('./levelup-nosnappy')
// module.exports['LevelUP (no Snappy)'].color = 'magenta'

module.exports.SQLite3 = require('./sqlite3')
module.exports.SQLite3.color = 'blue'
21 changes: 0 additions & 21 deletions test/benchmarks/engines/levelup-nosnappy.js

This file was deleted.

0 comments on commit 9c7ea31

Please sign in to comment.