Skip to content

Commit

Permalink
Replace json-stable-stringify with fast-json-stable-stringify
Browse files Browse the repository at this point in the history
fast-json-stable-stringify is being used because it does not have any dependencies and has been shown to be faster than json-stable-stringify

Bug: T210426
  • Loading branch information
clarakosi authored and d00rman committed Mar 18, 2019
1 parent ece11c8 commit f226a4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/dbutils.js
Expand Up @@ -6,7 +6,7 @@ const crypto = require('crypto');
const extend = require('extend');
const cass = require('cassandra-driver');
const P = require('bluebird');
const stableStringify = require('json-stable-stringify');
const stableStringify = require('fast-json-stable-stringify');
const validator = require('restbase-mod-table-spec').validator;
const Long = require('cassandra-driver').types.Long;

Expand Down
2 changes: 1 addition & 1 deletion lib/schemaMigration.js
Expand Up @@ -2,7 +2,7 @@

const dbu = require('./dbutils');
const P = require('bluebird');
const stringify = require('json-stable-stringify');
const stringify = require('fast-json-stable-stringify');

/**
* Check if a schema part differs, and if it does, if the version was
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,15 +1,15 @@
{
"name": "restbase-mod-table-cassandra",
"description": "RESTBase table storage on Cassandra",
"version": "1.1.2",
"version": "1.1.3",
"license": "Apache-2.0",
"dependencies": {
"bluebird": "^3.5.2",
"cassandra-driver": "3.5.0",
"core-js": "^2.5.7",
"extend": "^3.0.2",
"fast-json-stable-stringify": "^2.0.0",
"js-yaml": "^3.12.0",
"json-stable-stringify": "^1.0.1",
"restbase-mod-table-spec": "^1.1.0",
"string-align": "^0.2.0",
"yargs": "^12.0.2"
Expand Down

0 comments on commit f226a4b

Please sign in to comment.